summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-17 02:50:59 +0200
committerwm4 <wm4@nowhere>2014-08-17 02:50:59 +0200
commit5b64f5ad35ba00d894c9efb1b12fa93ed1aa27fa (patch)
treedb520914a6aef094aef098d885ee0ff5d0a6a2c7 /video/out/vo.h
parent4822056db7a9f717eace337aeda760c35ab114d5 (diff)
downloadmpv-5b64f5ad35ba00d894c9efb1b12fa93ed1aa27fa.tar.bz2
mpv-5b64f5ad35ba00d894c9efb1b12fa93ed1aa27fa.tar.xz
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.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h1
1 files changed, 1 insertions, 0 deletions
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);