mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
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:
parent
9843ffeed2
commit
ff274dee2e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue