mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
container: Do not allow adding an element to a container if it already has a parent
This should never happen, an element can have 1 and only 1 parent.
This commit is contained in:
parent
bcfeada696
commit
9d13c5cbd3
1 changed files with 1 additions and 0 deletions
|
@ -472,6 +472,7 @@ ges_container_add (GESContainer * container, GESTimelineElement * child)
|
|||
|
||||
g_return_val_if_fail (GES_IS_CONTAINER (container), FALSE);
|
||||
g_return_val_if_fail (GES_IS_TIMELINE_ELEMENT (child), FALSE);
|
||||
g_return_val_if_fail (GES_TIMELINE_ELEMENT_PARENT (child) == NULL, FALSE);
|
||||
|
||||
class = GES_CONTAINER_GET_CLASS (container);
|
||||
priv = container->priv;
|
||||
|
|
Loading…
Reference in a new issue