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 ceb82ba302.

Reviewed-by: Thibault Saunier <thibault.saunier@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D627
This commit is contained in:
Thibault Saunier 2016-01-06 09:50:39 +01:00
parent 199b86684f
commit b75d9b11c6

View file

@ -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);