Revert "timeline-element: Do not consider not serializable elements when getting top element"
This commit was causing issue where we were reporting the toplevel element as an element but that element was actually in another not serialized group. That is very tricky to handle for end users as they are not guaranteed the toplevel clips were actually not contained in another element. This reverts commit ceb82ba3028332987d8d5251f98b4896120aa59b. Reviewed-by: Thibault Saunier <thibault.saunier@collabora.com> Differential Revision: https://phabricator.freedesktop.org/D627
This commit is contained in:
parent
199b86684f
commit
b75d9b11c6
@ -1149,8 +1149,7 @@ 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) &&
|
||||
GES_TIMELINE_ELEMENT_PARENT (toplevel)->priv->serialize)
|
||||
while (GES_TIMELINE_ELEMENT_PARENT (toplevel))
|
||||
toplevel = GES_TIMELINE_ELEMENT_PARENT (toplevel);
|
||||
|
||||
return gst_object_ref (toplevel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user