Skip to content

va: allocator: dmabuf: destroy VASurface if no pooled buffer

When gst_va_dmabuf_allocator_setup_buffer_full() receives info (not NULL) it is supposed that this buffer is not part of the allocator pool, so it has to be de-allocated as soon it is freed.

This patch sets the destroy notify of the assigned GstVaBufferSurface if info is not NULL.

Also added a small fix for a critical message when logging a unknown surface format.

Merge request reports