mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
interleave: fix memory leak of GAP buffers
https://bugzilla.gnome.org/show_bug.cgi?id=793067
This commit is contained in:
parent
0511c4c225
commit
cbb9c31228
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue