]> git.sesse.net Git - vlc/commitdiff
Lua SD: use a nicer icon for nodes
authorFabio Ritrovato <exsephiroth87@gmail.com>
Mon, 8 Feb 2010 18:55:43 +0000 (19:55 +0100)
committerFabio Ritrovato <exsephiroth87@gmail.com>
Mon, 8 Feb 2010 18:55:43 +0000 (19:55 +0100)
modules/misc/lua/libs/sd.c

index c2e68e366d3a80a250bfa33636f7e25edb77070d..b92da3382b8030f20490ad50b3dcec46e4fe90d4 100644 (file)
@@ -5,7 +5,7 @@
  * $Id$
  *
  * Authors: Antoine Cellerier <dionoea at videolan tod org>
- *          Fabio Ritrovato <exsephiroth87 at videolan dot org>
+ *          Fabio Ritrovato <sephiroth87 at videolan dot org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -120,7 +120,9 @@ 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_New( p_sd, "vlc://nop", name );
+            input_item_t *p_input = input_item_NewWithType( p_sd, "vlc://nop",
+                                                            name, 0, NULL, 0,
+                                                            -1, ITEM_TYPE_NODE );
             free( name );
             lua_getfield( L, -1, "arturl" );
             if( lua_isstring( L, -1 ) )
@@ -267,8 +269,9 @@ 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_New( p_sd, "vlc://nop",
-                                                        name );
+                input_item_t *p_input = input_item_NewWithType( p_sd, "vlc://nop",
+                                                                name, 0, NULL, 0,
+                                                                -1, ITEM_TYPE_NODE );
                 free( name );
                 lua_getfield( L, -1, "arturl" );
                 if( lua_isstring( L, -1 ) )