[vlc-commits] luasd: fix parsing of input options

Pierre Ynard git at videolan.org
Mon May 14 04:59:07 CEST 2012


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon May 14 04:56:54 2012 +0200| [114a88bc426ee433e0d060c5d74caaaf10a7fab1] | committer: Pierre Ynard

luasd: fix parsing of input options

This is just a partial fix.
Fixes #6148

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=114a88bc426ee433e0d060c5d74caaaf10a7fab1
---

 modules/lua/libs/sd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/lua/libs/sd.c b/modules/lua/libs/sd.c
index e1325e6..5bca257 100644
--- a/modules/lua/libs/sd.c
+++ b/modules/lua/libs/sd.c
@@ -224,8 +224,8 @@ static int vlclua_sd_add_item( lua_State *L )
             int i_options = 0;
             const char *psz_path = lua_tostring( L, -1 );
 
-            vlclua_read_options( p_sd, L, &i_options, &ppsz_options );
             lua_pop( L, 1 );
+            vlclua_read_options( p_sd, L, &i_options, &ppsz_options );
             lua_getfield( L, -1, "title" );
             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,



More information about the vlc-commits mailing list