From 209f8225eda88f5b3a56ac37e459e4e9bda01d7e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Mar 2015 23:35:38 +0100 Subject: 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. --- video/out/vo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo.h') 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 -- cgit v1.2.3