mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
vaallocator: Check return value from va_sync_surface
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3919>
This commit is contained in:
parent
735b6af5b9
commit
7278c31ea8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue