[vlc-devel] commit: asf.c: write new header when track is removed/added (Ilkka Ollakka )

git version control git at videolan.org
Tue Oct 6 21:42:21 CEST 2009


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Sep 30 16:30:47 2009 +0300| [62b3d1a34116fae9688db8ab6c8504004e32e49c] | committer: Ilkka Ollakka 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62b3d1a34116fae9688db8ab6c8504004e32e49c
---

 modules/mux/asf.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index dc8c621..cd8c8b4 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -141,7 +141,7 @@ struct sout_mux_sys_t
 
     vlc_array_t     *p_tracks;
 
-    bool      b_write_header;
+    bool            b_write_header;
 
     block_t         *pk;
     int             i_pk_used;
@@ -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);
     tk->i_id = vlc_array_index_of_item( p_sys->p_tracks, tk ) + 1;
 
+
+    p_sys->b_write_header = true;
+
     return VLC_SUCCESS;
 }
 
@@ -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 ) );
 
+
+    p_sys->b_write_header = true;
     return VLC_SUCCESS;
 }
 




More information about the vlc-devel mailing list