From 8e2ba632c6ab8b424213835baf16fdde7e8a1c4d Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 1 May 2010 13:20:32 +0200 Subject: [PATCH] Write new ASF header on the fly only in HTTP mode. --- modules/mux/asf.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } -- 2.39.2