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:
parent
a2320509b4
commit
f902f70659
@ -2494,7 +2494,7 @@ to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE.</doc>
|
|||||||
<type name="guint8"/>
|
<type name="guint8"/>
|
||||||
</array>
|
</array>
|
||||||
</parameter>
|
</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>
|
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstbuffer.c">the size to extract</doc>
|
||||||
<type name="gsize" c:type="gsize"/>
|
<type name="gsize" c:type="gsize"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
@ -1986,7 +1986,7 @@ gst_buffer_fill (GstBuffer * buffer, gsize offset, gconstpointer src,
|
|||||||
* @offset: the offset to extract
|
* @offset: the offset to extract
|
||||||
* @dest: (out caller-allocates) (array length=size) (element-type guint8):
|
* @dest: (out caller-allocates) (array length=size) (element-type guint8):
|
||||||
* the destination address
|
* the destination address
|
||||||
* @size: the size to extract
|
* @size: (in): the size to extract
|
||||||
*
|
*
|
||||||
* Copies @size bytes starting from @offset in @buffer to @dest.
|
* Copies @size bytes starting from @offset in @buffer to @dest.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user