comparison 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
comparison
equal deleted inserted replaced
385:9b35a1731c3d 386:e6d11871e4c9
95 m_progress = 0; 95 m_progress = 0;
96 96
97 } else { 97 } else {
98 98
99 while (oggz_read(m_oggz, 1024) > 0 && 99 while (oggz_read(m_oggz, 1024) > 0 &&
100 m_channelCount == 0); 100 (m_channelCount == 0 || m_fileRate == 0 || m_sampleRate == 0));
101 101
102 if (m_channelCount > 0) { 102 if (m_channelCount > 0) {
103 m_decodeThread = new DecodeThread(this); 103 m_decodeThread = new DecodeThread(this);
104 m_decodeThread->start(); 104 m_decodeThread->start();
105 } 105 }