aggregator: Also release clipped buffer when releasing an aggregator pad
authorSebastian Dröge <sebastian@centricular.com>
Thu, 19 Oct 2023 16:43:26 +0000 (19:43 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 25 Oct 2023 13:58:06 +0000 (14:58 +0100)
Instead of waiting until the pad is actually finalized.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5553>

subprojects/gstreamer/libs/gst/base/gstaggregator.c

index b32b89508cee1be97e9453f2b79a9be2fd17b743..5c7113289405f3ee615240dc78a3df8d993bd50a 100644 (file)
@@ -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);