From 710990d5cf5d9f21a90f8de82c63a0ed4813d846 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 20 Apr 2018 21:54:23 +0200 Subject: [PATCH] gl: fix some GIR annotations Mostly related to out and array parameters --- gst-libs/gst/gl/gstgldisplay.c | 2 +- gst-libs/gst/gl/gstglmemory.c | 6 ++++-- gst-libs/gst/gl/gstglslstage.c | 5 +++-- gst-libs/gst/gl/gstglupload.c | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index f272571..e108073 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -465,7 +465,7 @@ gst_context_set_gl_display (GstContext * context, GstGLDisplay * display) /** * gst_context_get_gl_display: * @context: a #GstContext - * @display: (transfer full): resulting #GstGLDisplay + * @display: (out) (transfer full): resulting #GstGLDisplay * * Returns: Whether @display was in @context * diff --git a/gst-libs/gst/gl/gstglmemory.c b/gst-libs/gst/gl/gstglmemory.c index 76d7034..30d5f5e 100644 --- a/gst-libs/gst/gl/gstglmemory.c +++ b/gst-libs/gst/gl/gstglmemory.c @@ -1425,8 +1425,10 @@ gst_gl_video_allocation_params_copy_data (GstGLVideoAllocationParams * src_vid, * @allocator: the @GstGLMemoryAllocator to allocate from * @buffer: a #GstBuffer to setup * @params: the #GstGLVideoAllocationParams to allocate with - * @tex_formats: (allow-none): a list of #GstGLFormat's to allocate with. - * @wrapped_data: a list of wrapped data pointers + * @tex_formats: (allow-none) (array length=n_wrapped_pointers): + * a list of #GstGLFormat's to allocate with. + * @wrapped_data: (array length=n_wrapped_pointers) (element-type gpointer): + * a list of wrapped data pointers * @n_wrapped_pointers: the number of elements in @tex_formats and @wrapped_data * * Returns: whether the buffer was correctly setup diff --git a/gst-libs/gst/gl/gstglslstage.c b/gst-libs/gst/gl/gstglslstage.c index 0205f38..4e7374c 100644 --- a/gst-libs/gst/gl/gstglslstage.c +++ b/gst-libs/gst/gl/gstglslstage.c @@ -195,7 +195,8 @@ _ensure_shader (GstGLSLStage * stage) * @version: the #GstGLSLVersion * @profile: the #GstGLSLProfile * @n_strings: the number of strings in @str - * @str: an array of strings concatted together to produce a shader + * @str: (array length=n_strings): + * an array of strings concatted together to produce a shader * * Returns: (transfer floating): a new #GstGLSLStage of the specified @type * @@ -304,7 +305,7 @@ gst_glsl_stage_new_default_fragment (GstGLContext * context) * @version: a #GstGLSLVersion * @profile: a #GstGLSLProfile * @n_strings: number of strings in @str - * @str: (transfer none): a GLSL shader string + * @str: (array length=n_strings) (transfer none): a GLSL shader string * * Replaces the current shader string with @str. * diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 5390cdf..fa4884a 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -1784,7 +1784,7 @@ _upload_find_method (GstGLUpload * upload) * gst_gl_upload_perform_with_buffer: * @upload: a #GstGLUpload * @buffer: input #GstBuffer - * @outbuf_ptr: resulting #GstBuffer + * @outbuf_ptr: (out): resulting #GstBuffer * * Uploads @buffer using the transformation specified by * gst_gl_upload_set_caps() creating a new #GstBuffer in @outbuf_ptr. -- 2.7.4