summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-12 23:35:38 +0100
committerwm4 <wm4@nowhere>2015-03-12 23:35:38 +0100
commit209f8225eda88f5b3a56ac37e459e4e9bda01d7e (patch)
treedf1343c9ae5d4ee4644db585b55ecb794d12c45e /video/out/vo.h
parent73cf6155557abb27917371ec7d4f87f5fefb961f (diff)
downloadmpv-209f8225eda88f5b3a56ac37e459e4e9bda01d7e.tar.bz2
mpv-209f8225eda88f5b3a56ac37e459e4e9bda01d7e.tar.xz
vo: update FPS only on state changes
I'm not comfortable with VOCTRL_GET_DISPLAY_FPS being called every frame. This requires the VO to set VO_EVENT_WIN_STATE if the FPS could have changed. At least the X11 backend does this.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index f1adbc0908..b11b914742 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -36,7 +36,7 @@
#define VO_EVENT_RESIZE 2
// The ICC profile needs to be reloaded
#define VO_EVENT_ICC_PROFILE_CHANGED 4
-// Some other window state changed
+// Some other window state changed (position, window state, fps)
#define VO_EVENT_WIN_STATE 8
// The ambient light conditions changed and need to be reloaded
#define VO_EVENT_AMBIENT_LIGHTING_CHANGED 16