1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-06 23:21:54 +00:00
mpv/player
wm4 f605b03f63 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.
2014-09-22 18:06:59 +02:00
..
lua options.lua: call msg.debug after resolving 'identifier' 2014-09-16 17:34:08 +02:00
timeline Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
audio.c player: reset last_av_difference if not applicable 2014-09-20 00:44:37 +02:00
client.c client API: use playback abort mechanism 2014-09-13 16:52:42 +02:00
client.h lua: synchronously wait until scripts are loaded 2014-09-06 17:02:47 +02:00
command.c command: improve "osd" command 2014-09-22 00:25:59 +02:00
command.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
configfiles.c player: don't let multiline filenames set options on resume 2014-09-16 18:23:01 +02:00
core.h command: improve "osd" command 2014-09-22 00:25:59 +02:00
discnav.c video: get rid of video_next_pts field 2014-08-22 14:22:06 +02:00
loadfile.c player: shorten skip heuristic for playlist_prev to 1 second 2014-09-14 10:32:24 +02:00
lua.c sanitizer: avoid divide-by-zero instances 2014-09-14 21:07:30 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c stream: redo playback abort handling 2014-09-13 16:09:51 +02:00
misc.c player: some more input refactoring 2014-09-07 20:44:54 +02:00
osd.c osd: fix --term-osd=no 2014-09-22 00:29:45 +02:00
playloop.c player: make code more obvious 2014-09-20 00:45:11 +02:00
screenshot.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
screenshot.h
scripting.c lua: synchronously wait until scripts are loaded 2014-09-06 17:02:47 +02:00
sub.c sub: fix possible deadlock with --no-sub-ass and similar 2014-09-06 00:16:15 +02:00
video.c video: filter new frames at a better time (2) 2014-09-22 18:06:59 +02:00