From 5b64f5ad35ba00d894c9efb1b12fa93ed1aa27fa Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 17 Aug 2014 02:50:59 +0200 Subject: video: take refresh rate changes into account This works only on X11, and only if the refresh rate changes due to the window being moved to another screen (detected by us). It doesn't include system screen reconfiguration yet. This calls VOCTRL_GET_DISPLAY_FPS on every frame, which makes me uneasy. It means extra thread communication with the win32 and Cocoa backends. On the other hand, a frame doesn't happen _that_ often, and the communication should still be pretty cheap and fast, so it's probably ok. Also needs some extra fuzz for vo_vdpau.c, because that does everything differently. --- video/out/vo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index 9077ab49b1..93094117a6 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -289,6 +289,7 @@ void vo_set_paused(struct vo *vo, bool paused); int64_t vo_get_drop_count(struct vo *vo); void vo_set_flip_queue_offset(struct vo *vo, int64_t us); +int64_t vo_get_vsync_interval(struct vo *vo); void vo_wakeup(struct vo *vo); const char *vo_get_window_title(struct vo *vo); -- cgit v1.2.3