mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
va: allocator: Fix an unmap typo in _va_copy.
No need to unmap the the src memory when failing to allocate the dst mem. It has not been mapped yet. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2156>
This commit is contained in:
parent
39538adfd6
commit
9bcb18ebce
1 changed files with 0 additions and 1 deletions
|
@ -1389,7 +1389,6 @@ _va_copy (GstMemory * mem, gssize offset, gssize size)
|
|||
copy = gst_va_allocator_alloc (mem->allocator);
|
||||
if (!copy) {
|
||||
GST_WARNING ("failed to allocate new memory");
|
||||
gst_memory_unmap (mem, &sinfo);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue