Mercurial > hg > svcore
diff data/fileio/CodedAudioFileReader.cpp @ 375:f1ff248a793e
* Attempt to fix crash caused by race condition on threaded file decode
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2008 12:35:43 +0000 |
parents | 1d656dcda8ef |
children | e6d11871e4c9 |
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp Wed Feb 06 17:40:53 2008 +0000 +++ b/data/fileio/CodedAudioFileReader.cpp Thu Feb 07 12:35:43 2008 +0000 @@ -294,7 +294,7 @@ float max = 1.0; size_t count = sz * m_channelCount; - if (m_resampler) { + if (m_resampler && m_fileRate != 0) { float ratio = float(m_sampleRate) / float(m_fileRate);