summaryrefslogtreecommitdiff
path: root/gst
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:16:46 +0000
commitcbb9c3122870208e355da0c76f73db3fb981e2fa (patch)
treed13a8cd432b898fde17078c952df49909559cb81 /gst
parent0511c4c2254898c22bd710271dc81d40e0a82a40 (diff)
interleave: fix memory leak of GAP buffers
https://bugzilla.gnome.org/show_bug.cgi?id=793067
Diffstat (limited to 'gst')
-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);