smpte: fix copy/paste error causing unmap on wrong buffer
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Apr 2014 11:42:14 +0000 (12:42 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Apr 2014 11:43:57 +0000 (12:43 +0100)
Coverity 1139647

gst/smpte/gstsmpte.c

index 37a383d..8bc0d26 100644 (file)
@@ -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) !=