[vlc-devel] commit: Lua SD: use a nicer icon for nodes (Fabio Ritrovato )
git version control
git at videolan.org
Mon Feb 8 19:58:29 CET 2010
vlc | branch: master | Fabio Ritrovato <exsephiroth87 at gmail.com> | Mon Feb 8 19:55:43 2010 +0100| [914e2be1881ad090bc46098d565a0e29656a010c] | committer: Fabio Ritrovato
Lua SD: use a nicer icon for nodes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=914e2be1881ad090bc46098d565a0e29656a010c
---
modules/misc/lua/libs/sd.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/modules/misc/lua/libs/sd.c b/modules/misc/lua/libs/sd.c
index c2e68e3..b92da33 100644
--- a/modules/misc/lua/libs/sd.c
+++ b/modules/misc/lua/libs/sd.c
@@ -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 ) )
More information about the vlc-devel
mailing list