diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/lua.c | 2 | ||||
-rw-r--r-- | player/scripting.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/player/lua.c b/player/lua.c index ef8dc1ca7d..73b5a2991c 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1090,7 +1090,7 @@ static int script_readdir(lua_State *L) fullpath[0] = '\0'; fullpath = talloc_asprintf_append(fullpath, "%s/%s", path, name); struct stat st; - if (mp_stat(fullpath, &st)) + if (stat(fullpath, &st)) continue; if (!(((t & 1) && S_ISREG(st.st_mode)) || ((t & 2) && S_ISDIR(st.st_mode)))) diff --git a/player/scripting.c b/player/scripting.c index 6e2a5a4e2d..5bc9a915f3 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -157,7 +157,7 @@ static char **list_script_files(void *talloc_ctx, char *path) while ((ep = readdir(dp))) { char *fname = mp_path_join(talloc_ctx, bstr0(path), bstr0(ep->d_name)); struct stat s; - if (!mp_stat(fname, &s) && S_ISREG(s.st_mode)) + if (!stat(fname, &s) && S_ISREG(s.st_mode)) MP_TARRAY_APPEND(talloc_ctx, files, count, fname); } closedir(dp); |