clip: test for layer in group

Make sure the layer exists before we try to remove the grouped clips
from it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/177>
This commit is contained in:
Henry Wilkes 2020-05-15 18:09:50 +01:00
parent 34719efa17
commit 738524662b

View file

@ -2083,7 +2083,8 @@ _group (GList * containers)
* children */
_update_duration_limit (cclip);
ges_layer_remove_clip (layer, cclip);
if (layer)
ges_layer_remove_clip (layer, cclip);
}
/* Need to update the duration limit.