Commit 62b3d1a3 authored by Ilkka Ollakka's avatar Ilkka Ollakka

asf.c: write new header when track is removed/added

parent 38940203
...@@ -141,7 +141,7 @@ struct sout_mux_sys_t ...@@ -141,7 +141,7 @@ struct sout_mux_sys_t
vlc_array_t *p_tracks; vlc_array_t *p_tracks;
bool b_write_header; bool b_write_header;
block_t *pk; block_t *pk;
int i_pk_used; int i_pk_used;
...@@ -641,6 +641,9 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) ...@@ -641,6 +641,9 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
vlc_array_append( p_sys->p_tracks, (void *)tk); vlc_array_append( p_sys->p_tracks, (void *)tk);
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;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -674,6 +677,8 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) ...@@ -674,6 +677,8 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
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;
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