Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
759:a43acbe3988f | 760:b6bb0ecb7958 |
---|---|
69 m_completion(0), | 69 m_completion(0), |
70 m_decodeThread(0) | 70 m_decodeThread(0) |
71 { | 71 { |
72 m_channelCount = 0; | 72 m_channelCount = 0; |
73 m_fileRate = 0; | 73 m_fileRate = 0; |
74 | |
75 m_d->buffer.mBuffers[0].mData = 0; | |
74 | 76 |
75 Profiler profiler("CoreAudioFileReader::CoreAudioFileReader", true); | 77 Profiler profiler("CoreAudioFileReader::CoreAudioFileReader", true); |
76 | 78 |
77 SVDEBUG << "CoreAudioFileReader: path is \"" << m_path.toStdString() << "\"" << endl; | 79 SVDEBUG << "CoreAudioFileReader: path is \"" << m_path.toStdString() << "\"" << endl; |
78 | 80 |