diff options
author | Jaromir Wysoglad | 2019-09-05 22:02:28 +0200 |
---|---|---|
committer | Thierry Crozat | 2019-09-05 23:52:46 +0100 |
commit | 26bf329b9581985f04ccb26f41370a13836363ff (patch) | |
tree | 18108b565321cf61a2aa11645ae1d0d61e84d5c9 /backends/text-to-speech | |
parent | ba859f1eeda287214e90358b71728c594e2be652 (diff) | |
download | scummvm-rg350-26bf329b9581985f04ccb26f41370a13836363ff.tar.gz scummvm-rg350-26bf329b9581985f04ccb26f41370a13836363ff.tar.bz2 scummvm-rg350-26bf329b9581985f04ccb26f41370a13836363ff.zip |
TTS: Fix possible deadlock
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r-- | backends/text-to-speech/windows/windows-text-to-speech.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/text-to-speech/windows/windows-text-to-speech.cpp b/backends/text-to-speech/windows/windows-text-to-speech.cpp index ceca3e4566..9e6d30cd3a 100644 --- a/backends/text-to-speech/windows/windows-text-to-speech.cpp +++ b/backends/text-to-speech/windows/windows-text-to-speech.cpp @@ -128,6 +128,7 @@ DWORD WINAPI startSpeech(LPVOID parameters) { WaitForSingleObject(*params->mutex, INFINITE); // check again, when we have exclusive access to the queue if (params->queue->empty() || *(params->state) == WindowsTextToSpeechManager::PAUSED) { + ReleaseMutex(*params->mutex); break; } WCHAR *currentSpeech = params->queue->front(); |