diff options
author | wm4 <wm4@nowhere> | 2015-03-12 23:35:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-12 23:35:38 +0100 |
commit | 209f8225eda88f5b3a56ac37e459e4e9bda01d7e (patch) | |
tree | df1343c9ae5d4ee4644db585b55ecb794d12c45e /video/out/vo.h | |
parent | 73cf6155557abb27917371ec7d4f87f5fefb961f (diff) | |
download | mpv-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.h | 2 |
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 |