ges: If last added clip is not in a layer, get the first layer

Summary:
In case we just removed it from its layer, make sure to
just use the first layer when none specified.

Depends on D177

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D178
This commit is contained in:
Thibault Saunier 2015-05-14 11:12:20 +02:00
parent 9843ffeed2
commit ff274dee2e

View file

@ -358,6 +358,9 @@ _ges_add_clip_from_struct (GESTimeline * timeline, GstStructure * structure,
layer = _ges_get_layer_by_priority (timeline, 0);
else
layer = ges_clip_get_layer (GES_CLIP (container));
if (!layer)
layer = _ges_get_layer_by_priority (timeline, 0);
} else {
layer = _ges_get_layer_by_priority (timeline, layer_priority);
}