summaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2021-03-19 15:41:25 +0100
committerLars Knoll <lars.knoll@qt.io>2021-04-06 08:11:09 +0000
commit4afad05b6034d0764f645601e5c59f192055af38 (patch)
tree13aff5f6fcd5833d219e32b0973101692a43c7c3 /src/imports
parentf0333fe76695508b131a96f0de2589a8719e1546 (diff)
Don't add cameraControl and imageCaptureControl on session initialization
Add API for adding and relasing a session's cameraControl and imageCaptureControl. The session is audio-only until attaching a camera to it, so initialize the cameraControl on addCamera(). Do the same for the imageCaptureControl. Still need to change for other platforms besides darwin. To be followed by changes in the mediaEncoder too. Change-Id: I69097c73b745ffef3727135312a36f1f1d2627e5 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/multimedia/qdeclarativetorch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/multimedia/qdeclarativetorch.cpp b/src/imports/multimedia/qdeclarativetorch.cpp
index d0fabe099..ef2feb276 100644
--- a/src/imports/multimedia/qdeclarativetorch.cpp
+++ b/src/imports/multimedia/qdeclarativetorch.cpp
@@ -75,7 +75,7 @@ QDeclarativeTorch::QDeclarativeTorch(QCamera *camera)
if (!camera)
return;
auto *service = m_camera->captureSession()->platformSession();
- m_exposure = service->cameraControl()->exposureControl();
+ m_exposure = service->addCamera()->exposureControl();
if (m_exposure)
connect(m_exposure, SIGNAL(actualValueChanged(int)), SLOT(parameterChanged(int)));