Commit 42298f65 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

smpte: fix copy/paste error causing unmap on wrong buffer

Coverity 1139647
parent 1d7735b1
......@@ -504,7 +504,7 @@ gst_smpte_collected (GstCollectPads * pads, GstSMPTE * smpte)
in2 = gst_buffer_new_and_alloc (I420_SIZE (smpte->width, smpte->height));
gst_buffer_map (in2, &map, GST_MAP_WRITE);
fill_i420 (map.data, smpte->width, smpte->height, 0);
gst_buffer_unmap (in1, &map);
gst_buffer_unmap (in2, &map);
}
if (GST_VIDEO_INFO_WIDTH (&smpte->vinfo1) !=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment