mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
group: Handle clips being removed from their layers
This commit is contained in:
parent
825bf3ca3b
commit
31e7ca2ef7
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue