mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue