From 16e7f0859795528378ec5368215b4bd807b498c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 19 Oct 2023 19:43:26 +0300 Subject: [PATCH] aggregator: Also release clipped buffer when releasing an aggregator pad Instead of waiting until the pad is actually finalized. Part-of: --- subprojects/gstreamer/libs/gst/base/gstaggregator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gstreamer/libs/gst/base/gstaggregator.c b/subprojects/gstreamer/libs/gst/base/gstaggregator.c index b32b89508c..5c71132894 100644 --- a/subprojects/gstreamer/libs/gst/base/gstaggregator.c +++ b/subprojects/gstreamer/libs/gst/base/gstaggregator.c @@ -2034,6 +2034,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);