From f902f706596d19ba2cfd9ace5bbb544257c27330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Feb 2025 13:22:29 +0200 Subject: [PATCH] buffer: Mark gst_buffer_extract() size parameter as in-parameter Otherwise it's considered an out-parameter because of its relationship with the dest array pointer. Suggested-by: Sergey Bugaev Part-of: --- girs/Gst-1.0.gir | 2 +- subprojects/gstreamer/gst/gstbuffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 010c4430f2..8fbfcccd4e 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -2494,7 +2494,7 @@ to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE. - + the size to extract diff --git a/subprojects/gstreamer/gst/gstbuffer.c b/subprojects/gstreamer/gst/gstbuffer.c index 75b6220ba1..c41189f4e9 100644 --- a/subprojects/gstreamer/gst/gstbuffer.c +++ b/subprojects/gstreamer/gst/gstbuffer.c @@ -1986,7 +1986,7 @@ gst_buffer_fill (GstBuffer * buffer, gsize offset, gconstpointer src, * @offset: the offset to extract * @dest: (out caller-allocates) (array length=size) (element-type guint8): * the destination address - * @size: the size to extract + * @size: (in): the size to extract * * Copies @size bytes starting from @offset in @buffer to @dest. *