Commit 31e7ca2e authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

group: Handle clips being removed from their layers

parent 825bf3ca
......@@ -91,7 +91,12 @@ _update_our_values (GESGroup * group)
if (GES_IS_CLIP (child)) {
GESLayer *layer = ges_clip_get_layer (GES_CLIP (child));
gint32 prio = ges_layer_get_priority (layer);
gint32 prio;
if (!layer)
continue;
prio = ges_layer_get_priority (layer);
min_layer_prio = MIN (prio, min_layer_prio);
max_layer_prio = MAX (prio, max_layer_prio);
......@@ -199,6 +204,12 @@ _child_clip_changed_layer_cb (GESTimelineElement * clip,
return;
}
if (!new_layer) {
_update_our_values (group);
return;
}
container->initiated_move = clip;
_set_priority0 (GES_TIMELINE_ELEMENT (group), layer_prio + offset);
container->initiated_move = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment