Commit 1b973c94 authored by Simon Latapie's avatar Simon Latapie

* http.c: little fix

parent 85f81858
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* http.c : http mini-server ;) * http.c : http mini-server ;)
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: http.c,v 1.33 2003/11/12 02:56:13 garf Exp $ * $Id: http.c,v 1.34 2003/11/16 20:41:36 garf Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr> * Laurent Aimar <fenrir@via.ecp.fr>
...@@ -932,6 +932,9 @@ static mvar_t *mvar_PlaylistSetNew( char *name, playlist_t *p_pl ) ...@@ -932,6 +932,9 @@ static mvar_t *mvar_PlaylistSetNew( char *name, playlist_t *p_pl )
mvar_AppendNewVar( itm, "name", p_pl->pp_items[i]->psz_name ); mvar_AppendNewVar( itm, "name", p_pl->pp_items[i]->psz_name );
sprintf( value, "%d", p_pl->pp_items[i]->i_group );
mvar_AppendNewVar( itm, "group", value );
mvar_AppendVar( s, itm ); mvar_AppendVar( s, itm );
} }
vlc_mutex_unlock( &p_pl->object_lock ); vlc_mutex_unlock( &p_pl->object_lock );
...@@ -2951,7 +2954,7 @@ playlist_item_t * parse_MRL( char *psz ) ...@@ -2951,7 +2954,7 @@ playlist_item_t * parse_MRL( char *psz )
p_item = malloc( sizeof( playlist_item_t ) ); p_item = malloc( sizeof( playlist_item_t ) );
p_item->psz_name = mrl; p_item->psz_name = mrl;
p_item->psz_uri = mrl; p_item->psz_uri = strdup( mrl );
p_item->psz_author = strdup( "" ); p_item->psz_author = strdup( "" );
p_item->i_duration = -1; p_item->i_duration = -1;
p_item->i_type = 0; p_item->i_type = 0;
......
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