mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
baseparse: fix memory leak
A buffer to be skipped wasn't unref'd in gst_base_parse_chain(). Fixes #406
This commit is contained in:
parent
447cae6229
commit
826230ba1b
1 changed files with 1 additions and 0 deletions
|
@ -3130,6 +3130,7 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
GST_DEBUG ("All the buffer is skipped");
|
||||
parse->priv->offset += bsize;
|
||||
parse->priv->sync_offset = parse->priv->offset;
|
||||
gst_buffer_unref (buffer);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
buffer = gst_buffer_make_writable (buffer);
|
||||
|
|
Loading…
Reference in a new issue