Created
January 10, 2017 15:24
-
-
Save superdump/b2c2d148b772375bdf3cac536bc0ad53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/local/owr_video_renderer.c b/local/owr_video_renderer.c | |
index 8f1ab14..8bd5a36 100644 | |
--- a/local/owr_video_renderer.c | |
+++ b/local/owr_video_renderer.c | |
@@ -387,14 +387,25 @@ static GstElement *owr_video_renderer_get_element(OwrMediaRenderer *renderer, gu | |
} | |
/** | |
- * owr_video_renderer_set_request_context_callback: Configure the GClosure to | |
- * invoke when a GL context is required by the GStreamer pipeline running the | |
- * renderer. | |
+ * OwrVideoRendererRequestContextCallback: | |
+ * @context_type: (transfer none): list of sources | |
+ * @user_data: (allow-none): the data passed to owr_get_capture_sources | |
* | |
- * @renderer: | |
- * @callback: function providing the GstContext as return value. The parameters passed are a const gchar* representing the context type and the @user_data gpointer. | |
- * @user_data: extra data passed as first argument of the @callback. | |
- * @destroy_data: function invoked when disposing the user_data of the GClosure. | |
+ * Prototype for the callback passed to owr_get_capture_sources() | |
+ * | |
+ * Returns: A #GstContext | |
+ */ | |
+ | |
+ | |
+/** | |
+ * owr_video_renderer_set_request_context_callback: | |
+ * @renderer: The #OwrVideoRenderer on which to set the @callback | |
+ * @callback: (scope async): function providing the GstContext as return value. The parameters passed are a const gchar* representing the context type and the @user_data gpointer. | |
+ * @user_data: (allow-none): extra data passed as first argument of the @callback. | |
+ * @destroy_data: (nullable): a #GDestroyNotify invoked when disposing the @user_data of the GClosure. | |
+ * | |
+ * Configure the GClosure to invoke when a GL context is required by the | |
+ * GStreamer pipeline running the renderer. | |
*/ | |
void owr_video_renderer_set_request_context_callback(OwrVideoRenderer *renderer, OwrVideoRendererRequestContextCallback callback, gpointer user_data, GDestroyNotify destroy_data) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment