projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0511c4c
)
interleave: fix memory leak of GAP buffers
author
Philippe Normand
<philn@igalia.com>
Wed, 31 Jan 2018 15:02:50 +0000
(15:02 +0000)
committer
Philippe Normand
<philn@igalia.com>
Wed, 31 Jan 2018 15:16:46 +0000
(15:16 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=793067
gst/interleave/interleave.c
patch
|
blob
|
history
diff --git
a/gst/interleave/interleave.c
b/gst/interleave/interleave.c
index
76b7945
..
808d0ff
100644
(file)
--- 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);