summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandre Jousset <mid@proxad.net>2017-07-18 17:15:15 +0200
committerChristian Stromme <christian.stromme@qt.io>2017-08-31 08:38:00 +0000
commit8b8258665e4b6e85ca2e012722ad150320c03189 (patch)
tree553b8b46613ba7300fe90c810ccaf5e1639956ef /src
parentb6421913a065e23957b3adafc7e004d8f5d8e8a6 (diff)
ALSA: Fix regression in qalsaaudioinput.cpp
In QAlsaAudioInput::open(), one should check against the available audio inputs and not the audio outputs. Regression introduced in 5473621bde2be226f2f3687a80b4bfc93bbbe572. Task-number: QTBUG-62435 Change-Id: I5db0a092a98c17964c55c9358ea1010ca05e9d6f Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/alsa/qalsaaudioinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/alsa/qalsaaudioinput.cpp b/src/plugins/alsa/qalsaaudioinput.cpp
index 5a4111a9..0158e384 100644
--- a/src/plugins/alsa/qalsaaudioinput.cpp
+++ b/src/plugins/alsa/qalsaaudioinput.cpp
@@ -312,7 +312,7 @@ bool QAlsaAudioInput::open()
}
- if (!QAlsaAudioDeviceInfo::availableDevices(QAudio::AudioOutput).contains(m_device))
+ if (!QAlsaAudioDeviceInfo::availableDevices(QAudio::AudioInput).contains(m_device))
return false;
QString dev;