From 3e8fe2db6cfc9da0bf82d6c30be7583a51654a0b Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Mon, 29 Jun 2015 01:06:56 +0200 Subject: [PATCH] Fix video not loading when A/V tab shown --- src/widget/form/settings/avform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget/form/settings/avform.cpp b/src/widget/form/settings/avform.cpp index 73779e5e3..475e77251 100644 --- a/src/widget/form/settings/avform.cpp +++ b/src/widget/form/settings/avform.cpp @@ -177,8 +177,6 @@ void AVForm::updateVideoModes(int curIndex) } } } - - } void AVForm::onVideoDevChanged(int index) @@ -248,6 +246,9 @@ void AVForm::getVideoDevices() bodyUI->videoDevCombobox->setCurrentIndex(videoDevIndex); bodyUI->videoDevCombobox->blockSignals(false); updateVideoModes(videoDevIndex); + + QString devName = videoDeviceList[videoDevIndex].first; + camera.open(devName); } void AVForm::getAudioInDevices()