| Index: Source/modules/webaudio/AsyncAudioDecoder.cpp
|
| diff --git a/Source/modules/webaudio/AsyncAudioDecoder.cpp b/Source/modules/webaudio/AsyncAudioDecoder.cpp
|
| index 765d7047d70d5987f2e86870d984470acf7e7cec..ee8219e1956f829e65ebe59e61a2ff98562e0815 100644
|
| --- a/Source/modules/webaudio/AsyncAudioDecoder.cpp
|
| +++ b/Source/modules/webaudio/AsyncAudioDecoder.cpp
|
| @@ -47,7 +47,7 @@ AsyncAudioDecoder::AsyncAudioDecoder()
|
| AsyncAudioDecoder::~AsyncAudioDecoder()
|
| {
|
| m_queue.kill();
|
| -
|
| +
|
| // Stop thread.
|
| waitForThreadCompletion(m_threadID);
|
| m_threadID = 0;
|
| @@ -110,7 +110,7 @@ void AsyncAudioDecoder::DecodingTask::decode()
|
|
|
| // Do the actual decoding and invoke the callback.
|
| m_audioBuffer = AudioBuffer::createFromAudioFileData(m_audioData->data(), m_audioData->byteLength(), false, sampleRate());
|
| -
|
| +
|
| // Decoding is finished, but we need to do the callbacks on the main thread.
|
| callOnMainThread(notifyCompleteDispatch, this);
|
| }
|
|
|