mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 09:04:15 +00:00
composition: Reset the srcpad target when removing the toplevelentry
This commit is contained in:
parent
550aaf522d
commit
9c10aa34d1
1 changed files with 3 additions and 0 deletions
|
@ -2803,6 +2803,9 @@ gnl_composition_remove_object (GstBin * bin, GstElement * element)
|
||||||
GST_LOG_OBJECT (element, "Removed from the objects start/stop list");
|
GST_LOG_OBJECT (element, "Removed from the objects start/stop list");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (priv->current && GNL_OBJECT (priv->current->data) == GNL_OBJECT (element))
|
||||||
|
gnl_composition_reset_target_pad (comp);
|
||||||
|
|
||||||
g_hash_table_remove (priv->objects_hash, element);
|
g_hash_table_remove (priv->objects_hash, element);
|
||||||
update_required = OBJECT_IN_ACTIVE_SEGMENT (comp, element) ||
|
update_required = OBJECT_IN_ACTIVE_SEGMENT (comp, element) ||
|
||||||
(GNL_OBJECT_PRIORITY (element) == G_MAXUINT32) ||
|
(GNL_OBJECT_PRIORITY (element) == G_MAXUINT32) ||
|
||||||
|
|
Loading…
Reference in a new issue