1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(audio): input device not closed under certain circumstances

fixes #3625

Input device was not closed after the following steps:
- Select "Disabled" for audio source
- Switch away from A/V settings
- Switch back to A/V settings
- Switch to some audio input device
- Switch away from A/V settings
-> audio input device still open, but unused
This commit is contained in:
sudden6 2019-01-24 21:51:42 +01:00
parent acef759a58
commit 80f5cb5f7a
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -544,6 +544,11 @@ void AVForm::on_inDevCombobox_currentIndexChanged(int deviceIndex)
audioSettings->setInDev(deviceName);
audio->reinitInput(deviceName);
subscribedToAudioIn = inputEnabled;
if (inputEnabled) {
audio->subscribeInput();
}
microphoneSlider->setEnabled(inputEnabled);
if (!inputEnabled) {
volumeDisplay->setValue(volumeDisplay->minimum());