Qt: Fix camera on Windows part 2

This commit is contained in:
Vicki Pfau 2019-03-05 18:24:10 -08:00
parent 51030d98fd
commit d9fef21f92
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ void InputController::setupCam() {
#ifdef BUILD_QT_MULTIMEDIA
if (!m_camera) {
m_camera = std::make_unique<QCamera>();
connect(m_camera.get(), &QCamera::statusChanged, this, &InputController::prepareCamSettings);
connect(m_camera.get(), &QCamera::statusChanged, this, &InputController::prepareCamSettings, Qt::QueuedConnection);
}
m_camera->setCaptureMode(QCamera::CaptureVideo);
m_camera->setViewfinder(&m_videoDumper);