diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2017-02-12 01:01:56 +0100 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2017-02-12 01:01:56 +0100 |
commit | 35aa705c3ece8293652ffcf449c71fe80b96e722 (patch) | |
tree | 7c0fb34ec96204cbcd867a973b2476689919a5b4 /player/lua.c | |
parent | 10a005df0c981050afc35184a42173bea7ea2527 (diff) | |
parent | 3739d1318fdb658bb6037bfe06bb6cefb3b50a09 (diff) | |
download | mpv-35aa705c3ece8293652ffcf449c71fe80b96e722.tar.bz2 mpv-35aa705c3ece8293652ffcf449c71fe80b96e722.tar.xz |
Merge branch 'master' into release/current
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/lua.c b/player/lua.c index e76dc46fca..62f42baea1 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1079,6 +1079,7 @@ static int script_readdir(lua_State *L) lua_pushstring(L, name); // list index name lua_settable(L, -3); // list } + closedir(dir); talloc_free(fullpath); return 1; } @@ -1331,6 +1332,7 @@ static void add_functions(struct script_ctx *ctx) } const struct mp_scripting mp_scripting_lua = { + .name = "lua script", .file_ext = "lua", .load = load_lua, }; |