Browse Source

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
reviewable/pr5523/r1
sudden6 7 years ago
parent
commit
80f5cb5f7a
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 5
      src/widget/form/settings/avform.cpp

5
src/widget/form/settings/avform.cpp

@ -544,6 +544,11 @@ void AVForm::on_inDevCombobox_currentIndexChanged(int deviceIndex) @@ -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());

Loading…
Cancel
Save