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 37a383dcb1f8848e8b790d7bc1f248082015d564..8bc0d26190a0d8272b3d438f31944933de5ef1f5 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) !=