diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-08 15:37:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-08 15:37:09 +0300 |
commit | 4c318539b2f6abdf8f2a02376b6fcb8d30a4b12e (patch) | |
tree | 97eb5d104e11eb933705b7f8a3808e3ba6a00180 | |
parent | 0ee97518e132041ffa583b4e3f6b9f29d6b3c07b (diff) |
NULL check if file cant be read.
-rw-r--r-- | intern/audaspace/intern/AUD_Mixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/audaspace/intern/AUD_Mixer.cpp b/intern/audaspace/intern/AUD_Mixer.cpp index 299388b558b..b2704602a89 100644 --- a/intern/audaspace/intern/AUD_Mixer.cpp +++ b/intern/audaspace/intern/AUD_Mixer.cpp @@ -59,7 +59,7 @@ AUD_IReader* AUD_Mixer::prepare(AUD_IReader* reader) m_resampler->setReader(reader); reader = m_resampler->createReader(); - if(reader->getSpecs().channels != m_specs.channels) + if(reader != NULL && reader->getSpecs().channels != m_specs.channels) { m_mapper->setReader(reader); reader = m_mapper->createReader(); |