diff options
author | wm4 <wm4@nowhere> | 2012-12-12 22:56:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-12-12 22:56:41 +0100 |
commit | 962a97a2dbf6997a7d1f92e63a7d5c1e25870464 (patch) | |
tree | af8a18aaa8c04d36165e16d45081ca958d25ba98 /core/m_config.c | |
parent | 0fba387f72808c0298b3c34874d1388d8fd34def (diff) | |
download | mpv-962a97a2dbf6997a7d1f92e63a7d5c1e25870464.tar.bz2 mpv-962a97a2dbf6997a7d1f92e63a7d5c1e25870464.tar.xz |
sd_lavc: keep subs on subtitle track switching
Keep the currently displayed subtitles even when the user cycles through
subtitle tracks, and the subtitle is decoded by libavcodec (such as
vobsubs). Do this by not clearing the subtitles on reset(). reset() is
also called on seek, so check the start PTS whether the subtitle should
really be displayed (there's already an end PTS). Note that sd_ass does
essentially something similar.
The existing code has checks for whether the PTS reported by the demuxer
is invalid (MP_NOPTS_VALUE). I don't know under what circumstances this
can happens, so fall back to the old behavior if the PTS is invalid.
Diffstat (limited to 'core/m_config.c')
0 files changed, 0 insertions, 0 deletions