Fixing [#28907] Frozen playback.
[blender.git] / source / blender / editors / space_sequencer / sequencer_draw.c
index 8f1ea6fe254f318ecaa7aaf9a0e9aa1a50eeb7dc..13e54c9a4c00e36a902f96a93b715e379454a676 100644 (file)
@@ -192,6 +192,9 @@ static void drawseqwave(Scene *scene, Sequence *seq, float x1, float y1, float x
 
                waveform = seq->sound->waveform;
 
+               if(!waveform)
+                       return;
+
                startsample = floor((seq->startofs + seq->anim_startofs)/FPS * SOUND_WAVE_SAMPLES_PER_SECOND);
                endsample = ceil((seq->startofs + seq->anim_startofs + seq->enddisp - seq->startdisp)/FPS * SOUND_WAVE_SAMPLES_PER_SECOND);
                samplestep = (endsample-startsample) * stepsize / (x2-x1);