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/5510>
This commit is contained in:
Sebastian Dröge 2023-10-19 19:43:26 +03:00 committed by GStreamer Marge Bot
parent 70ee7293e0
commit 35c3689c44

View file

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