d3d11memory: Allow null GstD3D11Allocator to alloc methods
authorSeungha Yang <seungha@centricular.com>
Fri, 5 Aug 2022 13:23:52 +0000 (22:23 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 6 Aug 2022 14:54:56 +0000 (23:54 +0900)
commit21e5c33797531fe89aab24abbd96f7ab69347b43
treea56f1531655ef0c00b3b5beac842ffa78c34ef07
parent74f56632c31adeeb66a330f9c8b41b0cfafa21e5
d3d11memory: Allow null GstD3D11Allocator to alloc methods

Similar to gst_allocator_alloc(), use default GstD3D11Allocator
when caller passes null allocator object

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2843>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp