diff data/fileio/OggVorbisFileReader.cpp @ 386:e6d11871e4c9

* Fix bug that was causing decoded audio files (mp3s, oggs) to come up some of the time with zero sample rate
author Chris Cannam
date Sat, 01 Mar 2008 16:17:44 +0000
parents b92513201610
children 183ee2a55fc7
line wrap: on
line diff
--- a/data/fileio/OggVorbisFileReader.cpp	Wed Feb 27 18:04:10 2008 +0000
+++ b/data/fileio/OggVorbisFileReader.cpp	Sat Mar 01 16:17:44 2008 +0000
@@ -97,7 +97,7 @@
     } else {
 
         while (oggz_read(m_oggz, 1024) > 0 &&
-               m_channelCount == 0);
+               (m_channelCount == 0 || m_fileRate == 0 || m_sampleRate == 0));
 
         if (m_channelCount > 0) {
             m_decodeThread = new DecodeThread(this);