[MPlayer-cvslog] r24698 - trunk/libmpdemux/demuxer.c
uau
subversion at mplayerhq.hu
Thu Oct 4 04:35:34 CEST 2007
Author: uau
Date: Thu Oct 4 04:35:34 2007
New Revision: 24698
Log:
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.
Modified:
trunk/libmpdemux/demuxer.c
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Thu Oct 4 04:35:34 2007
@@ -930,6 +930,7 @@ if(!demuxer->seekable){
// 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;
More information about the MPlayer-cvslog
mailing list