changeset 26928:942e562ca4a9

call demux_flush() where appropriate
author nicodvb
date Mon, 02 Jun 2008 10:22:46 +0000
parents ff446aa58931
children 0b94c95fc4d3
files libmpdemux/demux_ts.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Mon Jun 02 10:18:44 2008 +0000
+++ b/libmpdemux/demux_ts.c	Mon Jun 02 10:22:46 2008 +0000
@@ -3139,13 +3139,8 @@
 	ts_dump_streams(demuxer->priv);
 	reset_fifos(demuxer, sh_audio != NULL, sh_video != NULL, demuxer->sub->id > 0);
 
-
-	if(sh_audio != NULL)
-		ds_free_packs(d_audio);
-	if(sh_video != NULL)
-		ds_free_packs(d_video);
-	if(demuxer->sub->id > 0)
-		ds_free_packs(d_sub);
+	demux_flush(demuxer);
+
 
 
 	video_stats = (sh_video != NULL);