summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-03-13 11:23:23 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-03-15 23:13:53 -0700
commit2c572e2bb1cfa4e225a6a1599f5ecdbcf4bf2dc6 (patch)
treed1006df2ce7b6ce598e7617cdb0fff6bb9575f69 /options/options.c
parent9ca1a1b0686510d2b6471b36df9d0eea3fcfa3b3 (diff)
downloadmpv-2c572e2bb1cfa4e225a6a1599f5ecdbcf4bf2dc6.tar.bz2
mpv-2c572e2bb1cfa4e225a6a1599f5ecdbcf4bf2dc6.tar.xz
video: add an option to tune waiting for video timing
Probably mostly useful for the libmpv render API.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index ebccc5976f..7c7a30ed27 100644
--- a/options/options.c
+++ b/options/options.c
@@ -139,6 +139,7 @@ static const m_option_t mp_vo_opt_list[] = {
OPT_FLAG("keepaspect-window", keepaspect_window, 0),
OPT_FLAG("hidpi-window-scale", hidpi_window_scale, 0),
OPT_FLAG("native-fs", native_fs, 0),
+ OPT_DOUBLERANGE("video-timing-offset", timing_offset, 0, 0.0, 1.0),
#if HAVE_X11
OPT_CHOICE("x11-netwm", x11_netwm, 0,
({"auto", 0}, {"no", -1}, {"yes", 1})),
@@ -176,6 +177,7 @@ const struct m_sub_options vo_sub_opts = {
.x11_bypass_compositor = 2,
.mmcss_profile = "Playback",
.ontop_level = -1,
+ .timing_offset = 0.050,
},
};