Fix T69558: crash in BKE_scene_update_sound for a soundstrip without

linked sound

Crash could be triggered by just adding any object to the scene.

Reviewers: sergey

Maniphest Tasks: T69558

Differential Revision: https://developer.blender.org/D5764
This commit is contained in:
Philipp Oeser 2019-09-11 17:36:52 +02:00
parent d84d49280b
commit 30aa67d5d5
Notes: blender-bot 2023-02-14 02:45:41 +01:00
Referenced by issue #69558, crash in BKE_scene_update_sound for a soundstrip without linked sound
1 changed files with 1 additions and 1 deletions

View File

@ -4933,7 +4933,7 @@ static bool sequencer_refresh_sound_length_recursive(Main *bmain, Scene *scene,
changed = true;
}
}
else if (seq->type == SEQ_TYPE_SOUND_RAM) {
else if (seq->type == SEQ_TYPE_SOUND_RAM && seq->sound) {
const float length = BKE_sound_get_length(bmain, seq->sound);
int old = seq->len;
float fac;