diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-19 06:12:48 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-19 06:12:48 (GMT) |
commit | 1f12c4824942949f3c030f7b2afd44cfac215417 (patch) | |
tree | 393a2fcf1d84dcd561e0dafc3cab0c14f59d8c6f /src/multimedia/audio/qaudiooutput_win32_p.cpp | |
parent | f020167901f9f19ded2bd15baec11107df939894 (diff) | |
parent | 9ddb31289ac123472c300efdba28c903a8be7a07 (diff) | |
download | Qt-1f12c4824942949f3c030f7b2afd44cfac215417.zip Qt-1f12c4824942949f3c030f7b2afd44cfac215417.tar.gz Qt-1f12c4824942949f3c030f7b2afd44cfac215417.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging:
Bug in QAudioOutput: Invalid use of "waveOutUnprepareHeader"
Diffstat (limited to 'src/multimedia/audio/qaudiooutput_win32_p.cpp')
-rw-r--r-- | src/multimedia/audio/qaudiooutput_win32_p.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudiooutput_win32_p.cpp b/src/multimedia/audio/qaudiooutput_win32_p.cpp index e818723..b92565d 100644 --- a/src/multimedia/audio/qaudiooutput_win32_p.cpp +++ b/src/multimedia/audio/qaudiooutput_win32_p.cpp @@ -150,7 +150,8 @@ void QAudioOutputPrivate::freeBlocks(WAVEHDR* blockArray) int count = buffer_size/period_size; for(int i = 0; i < count; i++) { - waveOutUnprepareHeader(hWaveOut,&blocks[i], sizeof(WAVEHDR)); + if (blocks->dwFlags & WHDR_PREPARED) + waveOutUnprepareHeader(hWaveOut,blocks, sizeof(WAVEHDR)); blocks+=sizeof(WAVEHDR); } HeapFree(GetProcessHeap(), 0, blockArray); |