summaryrefslogtreecommitdiffstats
path: root/osdep/shmem.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-21 00:21:23 +0200
committerwm4 <wm4@nowhere>2013-04-21 00:21:23 +0200
commit1bae5641ab21c0f15572dc016a8deef2a32d15b5 (patch)
treec886404f47927c3b30a24cf757bd18a4d4023360 /osdep/shmem.h
parentc768a00dfe669b9406f9baba9c027cb1c9a19d6c (diff)
downloadmpv-1bae5641ab21c0f15572dc016a8deef2a32d15b5.tar.bz2
mpv-1bae5641ab21c0f15572dc016a8deef2a32d15b5.tar.xz
demux_lavf: fix subtitle seeking before start of the file
When trying to seek before the start of the file, which usually happens when using the arrow keys to seek to the start of the file, external libavformat demuxed subtitles will be invisible. This is because seeking in the external subtitle file fails, so the subtitle demuxer is left in a random state. This is actually similar to the normal seeking path, which has some fallback code to handle this situation. Add such code to the subtitle seeking path too. (Normally, all demuxer support av_seek_frame(), except subtitles, which support avformat_seek_file() only. The latter was meant to be the "new" seeking API, but this never really took off, and using it normally seems to cause worse seeking behavior. Or maybe we just use it incorrectly, nobody really knows.)
Diffstat (limited to 'osdep/shmem.h')
0 files changed, 0 insertions, 0 deletions