summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-04 02:35:34 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-04 02:35:34 +0000
commit1c5d870414263339bf702f1480a5bebe9b20026b (patch)
tree5a1f9841ee20fc60fb710128d10a70763f27f4f4 /libmpdemux
parentf761edd20b32bc34712ec67746403e9267ca3902 (diff)
downloadmpv-1c5d870414263339bf702f1480a5bebe9b20026b.tar.bz2
mpv-1c5d870414263339bf702f1480a5bebe9b20026b.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24698 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demuxer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c
index 7d5c64ce71..537dfa448e 100644
--- a/libmpdemux/demuxer.c
+++ b/libmpdemux/demuxer.c
@@ -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;