diff options
author | wm4 <wm4@nowhere> | 2014-08-23 12:02:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-23 12:02:40 +0200 |
commit | 39b42814e0352535b697633b50d009025fd39303 (patch) | |
tree | 365c22d32396eb71d13a6d334fee8a31871f61c1 /demux | |
parent | 21f52aeeba2e8462c609006317251417ad9f3db3 (diff) | |
download | mpv-39b42814e0352535b697633b50d009025fd39303.tar.bz2 mpv-39b42814e0352535b697633b50d009025fd39303.tar.xz |
player: restore silent seeking
Commit 846257da introduced an accidental feature: if you kept seeking
(so playback never really resumes), the audio would never be played.
This was nice, but commit 4c25b000 accidentally removed it again (due
to the video_next_pts being earlier available than it used to be, so
audio could be played before the player executed the next queued seek).
Implicitly reintroduce the old behavior again by not decoding a second
video frame immediately. Usually, the second frame is used to compute
the frame duration needed to for accurate framedropping, but since the
first frame after a seek is never dropped, we don't need this.
Now the video code will queue the new frame to the VO immediately, and
since fill_audio_out_buffers() is called in the playloop before
write_video() and execute_queued_seek(), it never gets the chance to
enter STATUS_READY, and seeks will be silent.
This also has a nice side-effect: since the second frame is not decoded
and filtered, seeking becomes slightly faster (back to the same level
as with framedrop disabled).
It seems this still sometimes plays a period of audio when keeping a
seek key down. In my tests, this appeared to happen because the seek
finished before the next key repeat was sent.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions