if( i_maxdepth == 0 )
return;
- DIR *dh = utf8_opendir (psz_dir);
+ DIR *dh = vlc_opendir (psz_dir);
if (dh == NULL)
return;
/* Parse the directory and try to load all files it contains. */
for (;;)
{
- char *file = utf8_readdir (dh), *path;
+ char *file = vlc_readdir (dh), *path;
struct stat st;
if (file == NULL)
const int pathlen = asprintf (&path, "%s"DIR_SEP"%s", psz_dir, file);
free (file);
- if (pathlen == -1 || utf8_stat (path, &st))
+ if (pathlen == -1 || vlc_stat (path, &st))
continue;
if (S_ISDIR (st.st_mode))