From 734ca448053cb677a722bfc7c52ee5f8012a2b60 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 29 Jun 2024 09:51:46 +0200 Subject: [PATCH] ges-layer: Don't use invalid layers There's a possibility that there are no layers at that priority Part-of: --- subprojects/gst-editing-services/ges/ges-track.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-editing-services/ges/ges-track.c b/subprojects/gst-editing-services/ges/ges-track.c index 905ea2fb1f..4b511ee321 100644 --- a/subprojects/gst-editing-services/ges/ges-track.c +++ b/subprojects/gst-editing-services/ges/ges-track.c @@ -239,7 +239,7 @@ update_gaps (GESTrack * track) if (layer_prio != GES_TIMELINE_ELEMENT_NO_LAYER_PRIORITY) { GESLayer *layer = g_list_nth_data (priv->timeline->layers, layer_prio); - if (!ges_layer_get_active_for_track (layer, track)) + if (!layer || !ges_layer_get_active_for_track (layer, track)) continue; } }