Alias for #GstMapInfo to be used with g_auto():
void my_func(GstBuffer *buf) { g_auto(GstBufferMapInfo) map = GST_MAP_INFO_INIT; if (!gst_buffer_map(buf, &map, GST_MAP_READWRITE)) return; ... // No need to call gst_buffer_unmap() }
#GstMapInfo cannot be used with g_auto() because it is ambiguous whether it needs to be unmapped using gst.buffer.Buffer.unmap or gst.memory.Memory.unmap.
See also #GstMemoryMapInfo.
Alias for #GstMapInfo to be used with g_auto():
#GstMapInfo cannot be used with g_auto() because it is ambiguous whether it needs to be unmapped using gst.buffer.Buffer.unmap or gst.memory.Memory.unmap.
See also #GstMemoryMapInfo.