va: allocator: Fix an unmap typo in _va_copy.
authorHe Junyan <junyan.he@intel.com>
Tue, 13 Apr 2021 07:42:09 +0000 (15:42 +0800)
committerHe Junyan <junyan.he@intel.com>
Tue, 13 Apr 2021 07:46:17 +0000 (15:46 +0800)
commit9bcb18ebce9854aaf82ee40ae7d0af5748c65b40
tree7131f00ab0506f3cae5b735f6e311579648c7f22
parent39538adfd6afc25fa97727cb3bad672766901360
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>
sys/va/gstvaallocator.c