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:
Matus Gajdos 2019-12-19 11:28:13 +01:00 committed by Tim-Philipp Müller
parent 447cae6229
commit 826230ba1b

View file

@ -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);