Add GstBufferMapInfo to be used with g_auto()
authorXavier Claessens <xavier.claessens@collabora.com>
Fri, 13 May 2022 15:51:09 +0000 (11:51 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 20 Jun 2022 16:17:50 +0000 (16:17 +0000)
commit8bf778bb1f6e33546c4c9a5e676fd96d38514890
tree5f6d00666d7023674f8248609be61ad245de320a
parent190f15660f0f72129a0d3894b8999b026d605c98
Add GstBufferMapInfo to be used with g_auto()

We need a separate typedef for this feature because GstMapInfo itself
can be initialized by gst_memory_map() in which case info.memory should
not be unreffed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2412>
subprojects/gstreamer/gst/gstbuffer.c
subprojects/gstreamer/gst/gstbuffer.h
subprojects/gstreamer/tests/check/gst/gstbuffer.c