]> git.sesse.net Git - vlc/commitdiff
Do not remove track informations in DelStream for non http ASF muxing.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 1 May 2010 11:12:14 +0000 (13:12 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 1 May 2010 11:39:54 +0000 (13:39 +0200)
It fixes #3522.

modules/mux/asf.c

index 2eacd0a736f562d9db25257534b3baef94d467f6..165edfb13209af52b4b66f76011aa0043d206674 100644 (file)
@@ -662,7 +662,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 ) );
+    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;