[vlc-devel] commit: Simplification. ( Rémi Duraffort )
git version control
git at videolan.org
Sun Jun 21 14:07:22 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jun 21 14:06:48 2009 +0200| [2c622a1afed87ca982368d5f172ad38345948bc3] | committer: Rémi Duraffort
Simplification.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c622a1afed87ca982368d5f172ad38345948bc3
---
modules/control/http/util.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index a8ff23d..acfa65a 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -366,8 +366,7 @@ void PlaylistListNode( intf_thread_t *p_intf, playlist_t *p_pl,
mvar_AppendNewVar( itm, "uri", psz );
free( psz );
- sprintf( value, "Item");
- mvar_AppendNewVar( itm, "type", value );
+ mvar_AppendNewVar( itm, "type", "Item" );
sprintf( value, "%d", i_depth );
mvar_AppendNewVar( itm, "depth", value );
@@ -457,8 +456,7 @@ void PlaylistListNode( intf_thread_t *p_intf, playlist_t *p_pl,
mvar_AppendNewVar( itm, "name", p_node->p_input->psz_name );
mvar_AppendNewVar( itm, "uri", p_node->p_input->psz_name );
- sprintf( value, "Node" );
- mvar_AppendNewVar( itm, "type", value );
+ mvar_AppendNewVar( itm, "type", "Node" );
sprintf( value, "%d", p_node->i_id );
mvar_AppendNewVar( itm, "index", value );
More information about the vlc-devel
mailing list