mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
aggregator: always store or unref the buffer on the _chain function
Otherwise it leaks, and it is very common to go to flushing when the pipeline is stopping, leaking a buffer.
This commit is contained in:
parent
109f7c937b
commit
259a73a3dc
1 changed files with 2 additions and 0 deletions
|
@ -1158,12 +1158,14 @@ _chain (GstPad * pad, GstObject * object, GstBuffer * buffer)
|
||||||
|
|
||||||
flushing:
|
flushing:
|
||||||
|
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
GST_DEBUG_OBJECT (aggpad, "We are flushing");
|
GST_DEBUG_OBJECT (aggpad, "We are flushing");
|
||||||
|
|
||||||
return GST_FLOW_FLUSHING;
|
return GST_FLOW_FLUSHING;
|
||||||
|
|
||||||
eos:
|
eos:
|
||||||
|
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
GST_DEBUG_OBJECT (pad, "We are EOS already...");
|
GST_DEBUG_OBJECT (pad, "We are EOS already...");
|
||||||
|
|
||||||
return GST_FLOW_EOS;
|
return GST_FLOW_EOS;
|
||||||
|
|
Loading…
Reference in a new issue