VSE: Fix crash when scene strip is added to meta

Caused by 81514b0e91, missed sanitizing `sound->offset_time` usage in
`seq_update_sound_bounds_recursive_impl()`.
This commit is contained in:
Richard Antalik 2021-10-16 01:25:27 +02:00
parent 138fdf78ba
commit 5fed3aec4a
Notes: blender-bot 2023-02-13 17:24:19 +01:00
Referenced by issue #92253, VSE: Crash when converting Scene strip into Meta strip
1 changed files with 6 additions and 1 deletions

View File

@ -131,12 +131,17 @@ static void seq_update_sound_bounds_recursive_impl(Scene *scene,
endofs = seq->start + seq->len - end;
}
double offset_time = 0.0f;
if (seq->sound != NULL) {
offset_time = seq->sound->offset_time;
}
BKE_sound_move_scene_sound(scene,
seq->scene_sound,
seq->start + startofs,
seq->start + seq->len - endofs,
startofs + seq->anim_startofs,
seq->sound->offset_time);
offset_time);
}
}
}