Mercurial > hg > svcore
diff data/fileio/CoreAudioFileReader.cpp @ 760:b6bb0ecb7958
Avoid crash on CoreAudio reader dtor after failing to open file (fixing #504)
author | Chris Cannam |
---|---|
date | Sat, 09 Mar 2013 11:45:15 +0000 |
parents | a43acbe3988f |
children | 2079abf4f0c1 12f78ebc82bf |
line wrap: on
line diff
--- a/data/fileio/CoreAudioFileReader.cpp Fri Mar 08 21:35:46 2013 +0000 +++ b/data/fileio/CoreAudioFileReader.cpp Sat Mar 09 11:45:15 2013 +0000 @@ -72,6 +72,8 @@ m_channelCount = 0; m_fileRate = 0; + m_d->buffer.mBuffers[0].mData = 0; + Profiler profiler("CoreAudioFileReader::CoreAudioFileReader", true); SVDEBUG << "CoreAudioFileReader: path is \"" << m_path.toStdString() << "\"" << endl;