gstbuffer: Mark buffer_map* @info as caller-allocates

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/730>
This commit is contained in:
Marijn Suijten 2021-01-14 10:20:41 +01:00
parent c77136d63f
commit ab920e57eb

View file

@ -1757,7 +1757,7 @@ gst_buffer_resize_range (GstBuffer * buffer, guint idx, gint length,
/** /**
* gst_buffer_map: * gst_buffer_map:
* @buffer: a #GstBuffer. * @buffer: a #GstBuffer.
* @info: (out): info about the mapping * @info: (out caller-allocates): info about the mapping
* @flags: flags for the mapping * @flags: flags for the mapping
* *
* This function fills @info with the #GstMapInfo of all merged memory * This function fills @info with the #GstMapInfo of all merged memory
@ -1787,7 +1787,7 @@ gst_buffer_map (GstBuffer * buffer, GstMapInfo * info, GstMapFlags flags)
* @buffer: a #GstBuffer. * @buffer: a #GstBuffer.
* @idx: an index * @idx: an index
* @length: a length * @length: a length
* @info: (out): info about the mapping * @info: (out caller-allocates): info about the mapping
* @flags: flags for the mapping * @flags: flags for the mapping
* *
* This function fills @info with the #GstMapInfo of @length merged memory blocks * This function fills @info with the #GstMapInfo of @length merged memory blocks