gst: Fix gst_type_find_peek() return value annotation
authorSebastian Dröge <sebastian@centricular.com>
Wed, 25 Jan 2023 11:26:08 +0000 (13:26 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Jan 2023 00:54:10 +0000 (00:54 +0000)
It's not possible to annotate a in-parameter for a return value array as
the array length. Both are assumed to have the same direction and the
current annotation causes the size parameter to be considered an out
parameter.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3814>

subprojects/gstreamer/gst/gsttypefind.c

index bd48bf2..3ec16a6 100644 (file)
@@ -115,7 +115,7 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
  * the stream. The returned memory is valid until the typefinding function
  * returns and must not be freed.
  *
- * Returns: (transfer none) (array length=size) (nullable): the
+ * Returns: (transfer none) (nullable): the
  *     requested data, or %NULL if that data is not available.
  */
 const guint8 *