summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-12 23:35:38 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-03-15 20:08:00 +0900
commite84a00651a3bda40752602606ebf4a2472eb3dab (patch)
tree163f14c6f5144bb4a20815becd7be2f42c0f1c4d /video/out/vo.h
parentb17ccd1c43b999f4027c443a7ff7a95e05536934 (diff)
downloadmpv-e84a00651a3bda40752602606ebf4a2472eb3dab.tar.bz2
mpv-e84a00651a3bda40752602606ebf4a2472eb3dab.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. (cherry picked from commit 209f8225eda88f5b3a56ac37e459e4e9bda01d7e)
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 a531744c49..55e0da2135 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
// Set of events the player core may be interested in.