vlc/vlc-2.0 | branch: master | Pierre Ynard <linkfa...@yahoo.fr> | Mon May 14 
04:56:54 2012 +0200| [fca47b656a0d592d6ab66b380903b0609e0a5c3c] | committer: 
Pierre Ynard

luasd: fix parsing of input options

This is just a partial fix.
Fixes #6148
(cherry picked from commit 114a88bc426ee433e0d060c5d74caaaf10a7fab1)

Signed-off-by: Pierre Ynard <linkfa...@yahoo.fr>

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

 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 f0d4cf2..9c87cdf 100644
--- a/modules/lua/libs/sd.c
+++ b/modules/lua/libs/sd.c
@@ -228,8 +228,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,

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to