# HG changeset patch # User nicodvb # Date 1212402166 0 # Node ID 942e562ca4a92424770c556844b0c20c9a3ddd28 # Parent ff446aa58931cb38622c3115efabf1b669570365 call demux_flush() where appropriate diff -r ff446aa58931 -r 942e562ca4a9 libmpdemux/demux_ts.c --- 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);