summaryrefslogtreecommitdiffstats
path: root/libmpv/render.h
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 /libmpv/render.h
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 'libmpv/render.h')
-rw-r--r--libmpv/render.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpv/render.h b/libmpv/render.h
index 64a317d73c..75153befb8 100644
--- a/libmpv/render.h
+++ b/libmpv/render.h
@@ -270,6 +270,12 @@ void mpv_render_context_set_update_callback(mpv_render_context *ctx,
* notifies you when a new frame was added. The details potentially depend on
* the backends and the provided parameters.
*
+ * Generally, libmpv will invoke your update callback some time before the video
+ * frame should be shown, and then lets this function block until the supposed
+ * display time. This will limit your rendering to video FPS. You can prevent
+ * this by setting the "video-timing-offset" global option to 0. (This applies
+ * only to "audio" video sync mode.)
+ *
* @param ctx a valid render context
* @param params an array of parameters, terminated by type==0. Which parameters
* are required depends on the backend. It's left unspecified what