va: allocator: try to get VASurfaceID from every DMABuf allocator
Relax the check of the allocator type, because now the qdata can be attached for other DMABuf allocators. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1529>
This commit is contained in:
parent
20e493981b
commit
6ac4e79b21
@ -975,7 +975,7 @@ gst_va_memory_get_surface (GstMemory * mem, GstVideoInfo * info)
|
||||
if (!mem->allocator)
|
||||
return VA_INVALID_ID;
|
||||
|
||||
if (GST_IS_VA_DMABUF_ALLOCATOR (mem->allocator)) {
|
||||
if (GST_IS_DMABUF_ALLOCATOR (mem->allocator)) {
|
||||
GstVaBufferSurface *buf;
|
||||
|
||||
buf = gst_mini_object_get_qdata (GST_MINI_OBJECT (mem),
|
||||
|
Loading…
x
Reference in New Issue
Block a user