Browse Source

Save video dev name in settings

pull/1768/head
Tux3 / Mlkj / !Lev.uXFMLA 10 years ago committed by tux3
parent
commit
e5684a4bbf
  1. 4
      src/widget/form/settings/avform.cpp

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

@ -102,7 +102,9 @@ void AVForm::onVideoDevChanged(int index) @@ -102,7 +102,9 @@ void AVForm::onVideoDevChanged(int index)
camVideoSurface->setSource(nullptr);
if (camera)
delete camera;
camera = new CameraSource(videoDeviceList[index].first);
QString dev = videoDeviceList[index].first;
Settings::getInstance().setVideoDev(dev);
camera = new CameraSource(dev);
camVideoSurface->setSource(camera);
}

Loading…
Cancel
Save