From 914e2be1881ad090bc46098d565a0e29656a010c Mon Sep 17 00:00:00 2001 From: Fabio Ritrovato Date: Mon, 8 Feb 2010 19:55:43 +0100 Subject: [PATCH] Lua SD: use a nicer icon for nodes --- modules/misc/lua/libs/sd.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/misc/lua/libs/sd.c b/modules/misc/lua/libs/sd.c index c2e68e366d..b92da3382b 100644 --- a/modules/misc/lua/libs/sd.c +++ b/modules/misc/lua/libs/sd.c @@ -5,7 +5,7 @@ * $Id$ * * Authors: Antoine Cellerier - * Fabio Ritrovato + * Fabio Ritrovato * * 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 ) ) -- 2.39.2