d3d11: pluginutils: Fix wrong gst_memory_unmap() on _map() failure

It was obvious typo

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2164>
This commit is contained in:
Seungha Yang 2021-04-15 00:02:55 +09:00
parent edbf0a6622
commit 41879b20c2

View file

@ -888,7 +888,7 @@ error:
{
guint i;
for (i = 0; i < num_mapped; i++) {
GstMemory *mem = gst_buffer_peek_memory (buffer, num_mapped);
GstMemory *mem = gst_buffer_peek_memory (buffer, i);
gst_memory_unmap (mem, &info[i]);
}