mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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/5553>
This commit is contained in:
parent
16e7f08597
commit
229b727017
1 changed files with 2 additions and 2 deletions
|
@ -3701,8 +3701,8 @@ gst_aggregator_pad_is_inactive (GstAggregatorPad * pad)
|
||||||
gboolean inactive;
|
gboolean inactive;
|
||||||
|
|
||||||
self = GST_AGGREGATOR (gst_pad_get_parent_element (GST_PAD (pad)));
|
self = GST_AGGREGATOR (gst_pad_get_parent_element (GST_PAD (pad)));
|
||||||
|
if (!self)
|
||||||
g_assert_nonnull (self);
|
return FALSE;
|
||||||
|
|
||||||
PAD_LOCK (pad);
|
PAD_LOCK (pad);
|
||||||
inactive = self->priv->ignore_inactive_pads && is_live_unlocked (self)
|
inactive = self->priv->ignore_inactive_pads && is_live_unlocked (self)
|
||||||
|
|
Loading…
Reference in a new issue