[vlc-devel] commit: Lua SD: forgot to cast (Fabio Ritrovato )

git version control git at videolan.org
Mon Feb 8 20:37:57 CET 2010


vlc | branch: master | Fabio Ritrovato <exsephiroth87 at gmail.com> | Mon Feb  8 20:32:53 2010 +0100| [ca4c116a51bcf8f71d8d34d61aadc07b1ec276c8] | committer: Fabio Ritrovato 

Lua SD: forgot to cast

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

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

diff --git a/modules/misc/lua/libs/sd.c b/modules/misc/lua/libs/sd.c
index b92da33..e91047e 100644
--- a/modules/misc/lua/libs/sd.c
+++ b/modules/misc/lua/libs/sd.c
@@ -120,7 +120,8 @@ static int vlclua_sd_add_node( lua_State *L )
         {
             char *name = strdup( lua_tostring( L, -1 ) );
             lua_pop( L, 1 );
-            input_item_t *p_input = input_item_NewWithType( p_sd, "vlc://nop",
+            input_item_t *p_input = input_item_NewWithType( VLC_OBJECT( p_sd ),
+                                                            "vlc://nop",
                                                             name, 0, NULL, 0,
                                                             -1, ITEM_TYPE_NODE );
             free( name );
@@ -269,7 +270,8 @@ static int vlclua_node_add_node( lua_State *L )
                 char *name = strdup( lua_tostring( L, -1 ) );
                 lua_pop( L, 1 );
                 input_item_node_t *p_input_node = input_item_node_Create( *pp_node );
-                input_item_t *p_input = input_item_NewWithType( p_sd, "vlc://nop",
+                input_item_t *p_input = input_item_NewWithType( VLC_OBJECT( p_sd ),
+                                                                "vlc://nop",
                                                                 name, 0, NULL, 0,
                                                                 -1, ITEM_TYPE_NODE );
                 free( name );




More information about the vlc-devel mailing list