From: Laurent Aimar Date: Sat, 1 May 2010 11:20:32 +0000 (+0200) Subject: Write new ASF header on the fly only in HTTP mode. X-Git-Tag: 1.2.0-pre1~6822 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8e2ba632c6ab8b424213835baf16fdde7e8a1c4d;p=vlc Write new ASF header on the fly only in HTTP mode. --- diff --git a/modules/mux/asf.c b/modules/mux/asf.c index 165edfb132..8d78a69ad5 100644 --- a/modules/mux/asf.c +++ b/modules/mux/asf.c @@ -629,7 +629,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) tk->i_id = vlc_array_index_of_item( p_sys->p_tracks, tk ) + 1; - p_sys->b_write_header = true; + if( p_sys->b_asf_http ) + p_sys->b_write_header = true; return VLC_SUCCESS; } @@ -663,10 +664,10 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) } if( p_sys->b_asf_http ) + { vlc_array_remove( p_sys->p_tracks, vlc_array_index_of_item( p_sys->p_tracks, (void *)tk ) ); - - - p_sys->b_write_header = true; + p_sys->b_write_header = true; + } return VLC_SUCCESS; }