Browse Source

fix(AVForm): don't load gain when device not ready

This fixes a problem when the audio backend is not yet ready, but we try
to access it's volume.
reviewable/pr5648/r2
sudden6 6 years ago
parent
commit
cef773c4f6
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 2
      src/widget/form/settings/avform.cpp

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

@ -571,8 +571,6 @@ void AVForm::on_outDevCombobox_currentIndexChanged(int deviceIndex) @@ -571,8 +571,6 @@ void AVForm::on_outDevCombobox_currentIndexChanged(int deviceIndex)
}
playbackSlider->setEnabled(outputEnabled);
playbackSlider->setSliderPosition(
getStepsFromValue(audio->outputVolume(), audio->minOutputVolume(), audio->maxOutputVolume()));
}
void AVForm::on_playbackSlider_valueChanged(int sliderSteps)

Loading…
Cancel
Save