diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-03-10 22:04:13 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-03-10 22:04:13 (GMT) |
commit | 747a4dfc5a333c2f7066d344f7da1684226551bd (patch) | |
tree | 90c7f5be1f9ab23a7e9e08e9b904102d2ffc1809 /src | |
parent | 0eb2aa1de730b0223bb0e2aa9cc53b6ee608b6bf (diff) | |
download | Qt-747a4dfc5a333c2f7066d344f7da1684226551bd.zip Qt-747a4dfc5a333c2f7066d344f7da1684226551bd.tar.gz Qt-747a4dfc5a333c2f7066d344f7da1684226551bd.tar.bz2 |
SIGSEGV after QAudioOutput closed.
Task-number:QTBUG-8755
Reviewed-by:Derick Hawcroft
Diffstat (limited to 'src')
-rw-r--r-- | src/multimedia/audio/qaudiooutput_win32_p.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudiooutput_win32_p.cpp b/src/multimedia/audio/qaudiooutput_win32_p.cpp index c5792b6..f3ba079 100644 --- a/src/multimedia/audio/qaudiooutput_win32_p.cpp +++ b/src/multimedia/audio/qaudiooutput_win32_p.cpp @@ -455,6 +455,9 @@ void QAudioOutputPrivate::feedback() bool QAudioOutputPrivate::deviceReady() { + if(deviceState == QAudio::StoppedState) + return false; + if(pullMode) { int chunks = bytesAvailable/period_size; #ifdef DEBUG_AUDIO |