vaallocator: Check return value from va_sync_surface

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

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);
}