aggregator: Also release clipped buffer when releasing an aggregator pad

Instead of waiting until the pad is actually finalized.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5553>
This commit is contained in:
Sebastian Dröge 2023-10-19 19:43:26 +03:00 committed by Tim-Philipp Müller
parent 0596d637e2
commit 16e7f08597

View file

@ -2034,6 +2034,7 @@ gst_aggregator_release_pad (GstElement * element, GstPad * pad)
gst_aggregator_pad_set_flushing (aggpad, GST_FLOW_FLUSHING, TRUE); gst_aggregator_pad_set_flushing (aggpad, GST_FLOW_FLUSHING, TRUE);
PAD_LOCK (aggpad); PAD_LOCK (aggpad);
gst_buffer_replace (&aggpad->priv->peeked_buffer, NULL); gst_buffer_replace (&aggpad->priv->peeked_buffer, NULL);
gst_buffer_replace (&aggpad->priv->clipped_buffer, NULL);
PAD_UNLOCK (aggpad); PAD_UNLOCK (aggpad);
gst_element_remove_pad (element, pad); gst_element_remove_pad (element, pad);