dmabufallocator: adds gst_dmabuf_allocator_alloc_with_flags
authorHyunjun Ko <zzoon@igalia.com>
Fri, 30 Mar 2018 06:41:15 +0000 (15:41 +0900)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 26 Apr 2018 20:40:54 +0000 (16:40 -0400)
commit56ab7e0e1d0ebcbfef48c6a1ce89463a415c8e9d
treeba62af3b70a53e26cf0e6e230638027bd801e056
parente7700f20fd3cc52014d878637ca4a1780742108a
dmabufallocator: adds gst_dmabuf_allocator_alloc_with_flags

If we can guarantee the lifetime of the fd is longer than
the memory, we can use DONT_CLOSE flag not to close when release.
But it's not provided in gstdmabuf yet while gstfdmemory does.

For example, in case of using VA-API or MSDK, we would need this api.
Otherwise we should call dup to duplicate the fd.

https://bugzilla.gnome.org/show_bug.cgi?id=794829
docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/allocators/gstdmabuf.c
gst-libs/gst/allocators/gstdmabuf.h