summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-12 22:31:22 +0200
committerwm4 <wm4@nowhere>2015-05-12 22:42:06 +0200
commit29eb764fe0ae67bebfa930f88a9d7088f30561dd (patch)
tree9aa78e0b847a4d00f46077a73f453da16c8f7e2a /video/out/vo.h
parent7735b297329ed730f410b0b3cb6503eeea04ee90 (diff)
downloadmpv-29eb764fe0ae67bebfa930f88a9d7088f30561dd.tar.bz2
mpv-29eb764fe0ae67bebfa930f88a9d7088f30561dd.tar.xz
cocoa: make live-resizing as fast as before
Interrupt video timing. This means the Cocoa event loop does not have to up to 2 video frame durations until redrawing the frame finally has finished. We abuse the VO event flags for this. Eventually this should use wait_vo() or so in the video timing wait function, but for now the interaction this would require with the code of other VOs/backends would cause too much of a mess.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 26df7079d8..c2aee9aedd 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -40,6 +40,8 @@
#define VO_EVENT_WIN_STATE 8
// The ambient light conditions changed and need to be reloaded
#define VO_EVENT_AMBIENT_LIGHTING_CHANGED 16
+// Special mechanism for making resizing with Cocoa react faster
+#define VO_EVENT_LIVE_RESIZING 32
// Set of events the player core may be interested in.
#define VO_EVENTS_USER (VO_EVENT_RESIZE | VO_EVENT_WIN_STATE)