Commit fca47b65 authored by Pierre Ynard's avatar Pierre Ynard

luasd: fix parsing of input options

This is just a partial fix.
Fixes #6148
(cherry picked from commit 114a88bc426ee433e0d060c5d74caaaf10a7fab1)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 982e367a
...@@ -228,8 +228,8 @@ static int vlclua_sd_add_item( lua_State *L ) ...@@ -228,8 +228,8 @@ static int vlclua_sd_add_item( lua_State *L )
int i_options = 0; int i_options = 0;
const char *psz_path = lua_tostring( L, -1 ); const char *psz_path = lua_tostring( L, -1 );
vlclua_read_options( p_sd, L, &i_options, &ppsz_options );
lua_pop( L, 1 ); lua_pop( L, 1 );
vlclua_read_options( p_sd, L, &i_options, &ppsz_options );
lua_getfield( L, -1, "title" ); lua_getfield( L, -1, "title" );
const char *psz_title = luaL_checkstring( L, -1 ) ? luaL_checkstring( L, -1 ) : psz_path; const char *psz_title = luaL_checkstring( L, -1 ) ? luaL_checkstring( L, -1 ) : psz_path;
input_item_t *p_input = input_item_NewExt( psz_path, psz_title, input_item_t *p_input = input_item_NewExt( psz_path, psz_title,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment