base: adapter: Explicitly mark size parameter as input

The generated gir file marks the size parameter as "out" by default.
This is wrong in the context of a caller allocated buffer with a given size.
Explicitly marking the size parameter as (in) fixes the issue.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4399>
This commit is contained in:
badcel 2023-04-11 21:23:00 +02:00 committed by GStreamer Marge Bot
parent 901383771d
commit acb913a878

View file

@ -581,7 +581,7 @@ gst_adapter_unmap (GstAdapter * adapter)
* @dest: (out caller-allocates) (array length=size) (element-type guint8):
* the memory to copy into
* @offset: the bytes offset in the adapter to start from
* @size: the number of bytes to copy
* @size: (in): the number of bytes to copy
*
* Copies @size bytes of data starting at @offset out of the buffers
* contained in #GstAdapter into an array @dest provided by the caller.