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

Coverity 1139647
This commit is contained in:
Vincent Penquerc'h 2014-04-07 12:42:14 +01:00
parent 1d7735b1d6
commit 42298f65e8

View file

@ -504,7 +504,7 @@ gst_smpte_collected (GstCollectPads * pads, GstSMPTE * smpte)
in2 = gst_buffer_new_and_alloc (I420_SIZE (smpte->width, smpte->height)); in2 = gst_buffer_new_and_alloc (I420_SIZE (smpte->width, smpte->height));
gst_buffer_map (in2, &map, GST_MAP_WRITE); gst_buffer_map (in2, &map, GST_MAP_WRITE);
fill_i420 (map.data, smpte->width, smpte->height, 0); 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) != if (GST_VIDEO_INFO_WIDTH (&smpte->vinfo1) !=