mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
ges-layer: Don't use invalid layers
There's a possibility that there are no layers at that priority Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7116>
This commit is contained in:
parent
5d7a35ca59
commit
734ca44805
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue