gstmemory: Mark memory_map @info as caller-allocates

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/740>
This commit is contained in:
Marijn Suijten 2021-01-14 10:18:51 +01:00 committed by Tim-Philipp Müller
parent 50214723d7
commit 41999d974e

View file

@ -220,7 +220,7 @@ gst_memory_resize (GstMemory * mem, gssize offset, gsize size)
/** /**
* gst_memory_make_mapped: * gst_memory_make_mapped:
* @mem: (transfer full): a #GstMemory * @mem: (transfer full): a #GstMemory
* @info: (out): pointer for info * @info: (out caller-allocates): pointer for info
* @flags: mapping flags * @flags: mapping flags
* *
* Create a #GstMemory object that is mapped with @flags. If @mem is mappable * Create a #GstMemory object that is mapped with @flags. If @mem is mappable
@ -270,7 +270,7 @@ cannot_map:
/** /**
* gst_memory_map: * gst_memory_map:
* @mem: a #GstMemory * @mem: a #GstMemory
* @info: (out): pointer for info * @info: (out caller-allocates): pointer for info
* @flags: mapping flags * @flags: mapping flags
* *
* Fill @info with the pointer and sizes of the memory in @mem that can be * Fill @info with the pointer and sizes of the memory in @mem that can be