summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2018-01-31 15:02:50 +0000
committerPhilippe Normand <philn@igalia.com>2018-01-31 15:42:12 +0000
commit45951e16c7a982a789561622322427e796daf684 (patch)
treeeed99e324f89e255faaa617883b898bad6c37bc8
parent326e9549e378bcc71587ba569f73755e0abc1794 (diff)
downloadgstreamer-plugins-good-45951e16c7a982a789561622322427e796daf684.tar.gz
interleave: fix memory leak of GAP buffers
https://bugzilla.gnome.org/show_bug.cgi?id=793067
-rw-r--r--gst/interleave/interleave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/interleave/interleave.c b/gst/interleave/interleave.c
index 76b7945bd..808d0ff31 100644
--- a/gst/interleave/interleave.c
+++ b/gst/interleave/interleave.c
@@ -1221,7 +1221,6 @@ gst_interleave_collected (GstCollectPads * pads, GstInterleave * self)
goto next;
}
ncollected++;
- gst_buffer_map (inbuf, &input_info, GST_MAP_READ);
if (timestamp == -1)
timestamp = GST_BUFFER_TIMESTAMP (inbuf);
@@ -1236,6 +1235,7 @@ gst_interleave_collected (GstCollectPads * pads, GstInterleave * self)
}
outdata = write_info.data + width * channel;
+ gst_buffer_map (inbuf, &input_info, GST_MAP_READ);
self->func (outdata, input_info.data, self->channels, nsamples);
gst_buffer_unmap (inbuf, &input_info);