summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudioinput_mac_p.cpp
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-10-04 03:57:07 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-10-04 03:57:07 (GMT)
commitabcea22c5ba45d00c713d25a77773efbf6d941f7 (patch)
tree9cd98ebad82fc8ef80ff53c47da10f80ec114ffe /src/multimedia/audio/qaudioinput_mac_p.cpp
parent33b76a659b2f44fa7038e375bbfb4cfd449ae617 (diff)
parente2c45cbacaa0f48e1397572d3e5baa847c86e9b1 (diff)
downloadQt-abcea22c5ba45d00c713d25a77773efbf6d941f7.zip
Qt-abcea22c5ba45d00c713d25a77773efbf6d941f7.tar.gz
Qt-abcea22c5ba45d00c713d25a77773efbf6d941f7.tar.bz2
Merge remote branch 'origin/4.6' into 4.7-from-4.6
Conflicts: src/multimedia/audio/qaudioinput_win32_p.cpp
Diffstat (limited to 'src/multimedia/audio/qaudioinput_mac_p.cpp')
-rw-r--r--src/multimedia/audio/qaudioinput_mac_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudioinput_mac_p.cpp b/src/multimedia/audio/qaudioinput_mac_p.cpp
index 5897e75..c3d2ae2 100644
--- a/src/multimedia/audio/qaudioinput_mac_p.cpp
+++ b/src/multimedia/audio/qaudioinput_mac_p.cpp
@@ -717,7 +717,7 @@ QIODevice* QAudioInputPrivate::start(QIODevice* device)
{
QIODevice* op = device;
- if (!audioFormat.isValid() || !open()) {
+ if (!audioDeviceInfo->isFormatSupported(audioFormat) || !open()) {
stateCode = QAudio::StoppedState;
errorCode = QAudio::OpenError;
return audioIO;