vaallocator: Check return value from va_sync_surface

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4007>
This commit is contained in:
Mengkejiergeli Ba 2023-02-16 15:03:25 +08:00 committed by GStreamer Marge Bot
parent fbab40bd5e
commit 5a69676166

View file

@ -414,7 +414,8 @@ gst_va_dmabuf_mem_map (GstMemory * gmem, gsize maxsize, GstMapFlags flags)
return NULL;
}
va_sync_surface (self->display, surface);
if (!va_sync_surface (self->display, surface))
return NULL;
return self->parent_map (gmem, maxsize, flags);
}