summaryrefslogtreecommitdiffstats
path: root/libmpv/opengl_cb.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-24 02:00:02 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-25 20:18:32 -0800
commit9e64b9382265fb688fecda15b28ad6c41b587cd6 (patch)
tree199b1e4551ec9f901d8d9ea11f3fce60614e3134 /libmpv/opengl_cb.h
parent11f5713e3bbeea8449a97ecb979936e02660321e (diff)
downloadmpv-9e64b9382265fb688fecda15b28ad6c41b587cd6.tar.bz2
mpv-9e64b9382265fb688fecda15b28ad6c41b587cd6.tar.xz
client API: be more explicit about what can be done in wakeup callbacks
Don't leave any room for interpretation.
Diffstat (limited to 'libmpv/opengl_cb.h')
-rw-r--r--libmpv/opengl_cb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpv/opengl_cb.h b/libmpv/opengl_cb.h
index 4172611dc5..4025d745fa 100644
--- a/libmpv/opengl_cb.h
+++ b/libmpv/opengl_cb.h
@@ -252,7 +252,8 @@ typedef void *(*mpv_opengl_cb_get_proc_address_fn)(void *fn_ctx, const char *nam
* Set the callback that notifies you when a new video frame is available, or
* if the video display configuration somehow changed and requires a redraw.
* Similar to mpv_set_wakeup_callback(), you must not call any mpv API from
- * the callback.
+ * the callback, and all the other listed restrictions apply (such as not
+ * exiting the callback by throwing exceptions).
*
* @param callback callback(callback_ctx) is called if the frame should be
* redrawn