all repos — mgba @ d9fef21f92e7438c11ffc29cb1dc1f233d731f9c

mGBA Game Boy Advance Emulator

Qt: Fix camera on Windows part 2
Vicki Pfau vi@endrift.com
Tue, 05 Mar 2019 18:24:10 -0800
commit

d9fef21f92e7438c11ffc29cb1dc1f233d731f9c

parent

51030d98fd01679834abf8d99812ac3e5fe0793e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/InputController.cppsrc/platform/qt/InputController.cpp

@@ -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);