Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-06-13 01:31:02 +0400
committerTon Roosendaal <ton@blender.org>2006-06-13 01:31:02 +0400
commit4aaa44811e802acd0aeaa01b836b0b79a260d79d (patch)
tree575ed6938a020a8ef30647d6bbcdb57f760a5d9c /source/blender/src/drawseq.c
parentb58998729bbc27dc978436596f81b4d1df899137 (diff)
Plumiferos crash report:
2006/01/28 commit from Campbell forgot to check for proper pointer: if(seq->sound->stream==NULL) return; should be: if(seq->sound==NULL || seq->sound->stream==NULL) return;
Diffstat (limited to 'source/blender/src/drawseq.c')
-rw-r--r--source/blender/src/drawseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c
index 07ad3e1fd2e..8e80c258e23 100644
--- a/source/blender/src/drawseq.c
+++ b/source/blender/src/drawseq.c
@@ -258,7 +258,7 @@ static void drawseqwave(Sequence *seq, float x1, float y1, float x2, float y2, i
float fsofs, feofs_sofs, sound_width, wavemulti; /* for faster access in the loop */
audio_makestream(seq->sound);
- if(seq->sound->stream==NULL) return;
+ if(seq->sound==NULL || seq->sound->stream==NULL) return;
if (seq->flag & SEQ_MUTE) glColor3ub(0x70, 0x80, 0x80); else glColor3ub(0x70, 0xc0, 0xc0);