aggregator: Allow passing unparented pads to gst_aggregator_pad_is_inactive()

It's very difficult to ensure that a pad is still child of the
aggregator during aggregation, so simply consider unparented pads as
inactive instead of asserting.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5510>
This commit is contained in:
Sebastian Dröge 2023-10-19 19:44:21 +03:00 committed by GStreamer Marge Bot
parent 35c3689c44
commit 9e51f1f182

View file

@ -3828,8 +3828,8 @@ gst_aggregator_pad_is_inactive (GstAggregatorPad * pad)
gboolean inactive;
self = GST_AGGREGATOR (gst_pad_get_parent_element (GST_PAD (pad)));
g_assert_nonnull (self);
if (!self)
return FALSE;
PAD_LOCK (pad);
inactive = self->priv->ignore_inactive_pads && is_live_unlocked (self)