summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-22 18:06:59 +0200
committerwm4 <wm4@nowhere>2014-09-22 18:06:59 +0200
commitf605b03f631e770ce6e99893134554603d6fbe40 (patch)
treeb5a13cc82a6bcd8953775302d22fe9e11676e7e6 /waftools
parent63a2024a8b4786e5f87901658294b93db55a5efc (diff)
downloadmpv-f605b03f631e770ce6e99893134554603d6fbe40.tar.bz2
mpv-f605b03f631e770ce6e99893134554603d6fbe40.tar.xz
video: filter new frames at a better time (2)
We generally want 2 things: 1. minimal wakeups for decoding each frame 2. minimal number of frames decoded on continuous seeking Commit 35810cb8 changed this a bit, and fixed 1. But it broke 2., and now it decodes 2 frames instead of 1 when you keep seeking (arrow key held down or such). This made seeking appear slower. Fix this by making the logic more explicit. In particular, call the filters only if we actually try to get a new frame. When playing with --no-audio and all other distractions disabled (like OSC), it still wakes up 2 times per frame - but the second time is merely because the VO didn't accept the new frame yet.
Diffstat (limited to 'waftools')
0 files changed, 0 insertions, 0 deletions