summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua.c')
-rw-r--r--player/lua.c2
1 files changed, 1 insertions, 1 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))))