Commit ca4c116a authored by Fabio Ritrovato's avatar Fabio Ritrovato

Lua SD: forgot to cast

parent 51e62646
...@@ -120,7 +120,8 @@ static int vlclua_sd_add_node( lua_State *L ) ...@@ -120,7 +120,8 @@ static int vlclua_sd_add_node( lua_State *L )
{ {
char *name = strdup( lua_tostring( L, -1 ) ); char *name = strdup( lua_tostring( L, -1 ) );
lua_pop( 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, name, 0, NULL, 0,
-1, ITEM_TYPE_NODE ); -1, ITEM_TYPE_NODE );
free( name ); free( name );
...@@ -269,7 +270,8 @@ static int vlclua_node_add_node( lua_State *L ) ...@@ -269,7 +270,8 @@ static int vlclua_node_add_node( lua_State *L )
char *name = strdup( lua_tostring( L, -1 ) ); char *name = strdup( lua_tostring( L, -1 ) );
lua_pop( L, 1 ); lua_pop( L, 1 );
input_item_node_t *p_input_node = input_item_node_Create( *pp_node ); 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, name, 0, NULL, 0,
-1, ITEM_TYPE_NODE ); -1, ITEM_TYPE_NODE );
free( name ); free( name );
......
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