summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-23 20:56:11 +0100
committerwm4 <wm4@nowhere>2015-01-23 20:56:25 +0100
commita0a40eb2872d137898e6f96b8d46490f2e63071f (patch)
tree2e665b1ce92a6984c5498e8faaa38e0d6b2d7e92 /video/out/vo.h
parentd76dbbd41427a12f03dac7ccc99d8c864b228d6b (diff)
downloadmpv-a0a40eb2872d137898e6f96b8d46490f2e63071f.tar.bz2
mpv-a0a40eb2872d137898e6f96b8d46490f2e63071f.tar.xz
vo: fix disabling/enabling smoothmotion at runtime
vo.c queried the VO at initialization whether it wants to be updated on every display frame, or every video frame. If the smoothmotion option was changed at runtime, the rendering mode in vo.c wasn't updated. Just let vo_opengl set the mode directly. Abuse the existing vo_set_flip_queue_offset() function for this. Also add a comment suggesting the use of --display-fps to the manpage, which doesn't have anything to do with the rest of this commit, but is important to make smoothmotion run well.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 33a2513c1f..281152352d 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -106,8 +106,6 @@ enum mp_voctrl {
VOCTRL_GET_RECENT_FLIP_TIME, // int64_t* (using mp_time_us())
VOCTRL_GET_PREF_DEINT, // int*
-
- VOCTRL_GET_VSYNC_TIMED, // bool*
};
// VOCTRL_SET_EQUALIZER
@@ -338,7 +336,7 @@ void vo_query_formats(struct vo *vo, uint8_t *list);
void vo_event(struct vo *vo, int event);
int vo_query_and_reset_events(struct vo *vo, int events);
-void vo_set_flip_queue_offset(struct vo *vo, int64_t us);
+void vo_set_flip_queue_params(struct vo *vo, int64_t offset_us, bool vsync_timed);
int64_t vo_get_vsync_interval(struct vo *vo);
void vo_wakeup(struct vo *vo);