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 <bugaevc@gmail.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8494>
This commit is contained in:
Sebastian Dröge 2025-02-17 13:22:29 +02:00 committed by GStreamer Marge Bot
parent a2320509b4
commit f902f70659
2 changed files with 2 additions and 2 deletions

View File

@ -2494,7 +2494,7 @@ to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE.</doc>
<type name="guint8"/>
</array>
</parameter>
<parameter name="size" direction="out" caller-allocates="0" transfer-ownership="full">
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstbuffer.c">the size to extract</doc>
<type name="gsize" c:type="gsize"/>
</parameter>

View File

@ -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.
*