Fix crash when dragging video into VSE timeline

Caused by NULL dereference in strip overlap handling (expand to fit),
because `time_dependent_strips` strip collection is not created.

Check if strip collection is provided in `query_right_side_strips()`.
This commit is contained in:
Richard Antalik 2023-01-10 16:12:13 +01:00
parent 09a5443f20
commit 3a98dc6812
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ static SeqCollection *query_right_side_strips(const Scene *scene,
SeqCollection *collection = SEQ_collection_create(__func__);
LISTBASE_FOREACH (Sequence *, seq, seqbase) {
if (SEQ_collection_has_strip(seq, time_dependent_strips)) {
if (time_dependent_strips != NULL && SEQ_collection_has_strip(seq, time_dependent_strips)) {
continue;
}
if (SEQ_collection_has_strip(seq, transformed_strips)) {