From 42298f65e88009ab16384ee53dfbed50f8cc1747 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 7 Apr 2014 12:42:14 +0100 Subject: [PATCH] smpte: fix copy/paste error causing unmap on wrong buffer Coverity 1139647 --- gst/smpte/gstsmpte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index 37a383d..8bc0d26 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -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) != -- 2.7.4