changeset 24678:9aab9d7b51f0

Fix missing subtitles after seeking back Subtitle packets that had been demuxed but whose start time had not yet been reached were left in the demuxer stream after seeking. When using the default (non-libass) subtitle rendering this could block subtitles from appearing as long as the playback position stayed below the original one before seek. External subtitle files were not affected. Fixed by making seek code free all packets from the subtitle stream.
author uau
date Thu, 04 Oct 2007 02:35:34 +0000
parents 9f81c2175803
children 065d1f97815f
files libmpdemux/demuxer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Wed Oct 03 23:50:54 2007 +0000
+++ b/libmpdemux/demuxer.c	Thu Oct 04 02:35:34 2007 +0000
@@ -930,6 +930,7 @@
     // clear demux buffers:
     if(sh_audio){ ds_free_packs(d_audio);sh_audio->a_buffer_len=0;}
     ds_free_packs(d_video);
+    ds_free_packs(demuxer->sub);
     
     demuxer->stream->eof=0; // clear eof flag
     demuxer->video->eof=0;