From e84a00651a3bda40752602606ebf4a2472eb3dab 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. (cherry picked from commit 209f8225eda88f5b3a56ac37e459e4e9bda01d7e) --- 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 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. -- cgit v1.2.3