Commit d4d55d28 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Write new ASF header on the fly only in HTTP mode.

(cherry picked from commit 8e2ba632)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9387ebca
...@@ -629,7 +629,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) ...@@ -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; 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; return VLC_SUCCESS;
} }
...@@ -663,10 +664,10 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) ...@@ -663,10 +664,10 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
} }
if( p_sys->b_asf_http ) if( p_sys->b_asf_http )
{
vlc_array_remove( p_sys->p_tracks, vlc_array_index_of_item( p_sys->p_tracks, (void *)tk ) ); 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; return VLC_SUCCESS;
} }
......
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