diff --git a/ges/ges-timeline-element.c b/ges/ges-timeline-element.c index 94e8968951..721243ad5e 100644 --- a/ges/ges-timeline-element.c +++ b/ges/ges-timeline-element.c @@ -1149,7 +1149,8 @@ ges_timeline_element_get_toplevel_parent (GESTimelineElement * self) g_return_val_if_fail (GES_IS_TIMELINE_ELEMENT (self), NULL); - while (GES_TIMELINE_ELEMENT_PARENT (toplevel)) + while (GES_TIMELINE_ELEMENT_PARENT (toplevel) && + GES_TIMELINE_ELEMENT_PARENT (toplevel)->priv->serialize) toplevel = GES_TIMELINE_ELEMENT_PARENT (toplevel); return gst_object_ref (toplevel);