[vlc-devel] commit: Lua SD: blind attempt at fixing #3324 (Fabio Ritrovato )

git version control git at videolan.org
Tue Feb 23 15:24:46 CET 2010


vlc | branch: master | Fabio Ritrovato <sephiroth87 at videolan.org> | Tue Feb 23 15:23:49 2010 +0100| [fcd847ecef19c10fec38ab510f3133af9bf0aee9] | committer: Fabio Ritrovato 

Lua SD: blind attempt at fixing #3324

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

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

diff --git a/modules/misc/lua/libs/sd.c b/modules/misc/lua/libs/sd.c
index 46ff868..a5bb09f 100644
--- a/modules/misc/lua/libs/sd.c
+++ b/modules/misc/lua/libs/sd.c
@@ -201,9 +201,9 @@ static int vlclua_sd_add_item( lua_State *L )
 static int vlclua_sd_remove_item( lua_State *L )
 {
     services_discovery_t *p_sd = (services_discovery_t *)vlclua_get_this( L );
-    if( !lua_isnil( L, -1 ) )
+    if( !lua_isnil( L, 1 ) )
     {
-        input_item_t **pp_input = luaL_checkudata( L, -1, "input_item_t" );
+        input_item_t **pp_input = luaL_checkudata( L, 1, "input_item_t" );
         if( *pp_input )
             services_discovery_RemoveItem( p_sd, *pp_input );
         /* Make sure we won't try to remove it again */




More information about the vlc-devel mailing list