summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/camera/avfimagecapturecontrol.h
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2017-06-26 17:00:38 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2017-06-27 10:16:08 +0000
commit6ac5b9fb591b1c45ff61a633bbbfebd63f34b9f7 (patch)
tree356ba0c4070a8b089b13e52b4813919c1fc8b5ba /src/plugins/avfoundation/camera/avfimagecapturecontrol.h
parente8e9f40ebc0d822fe639bed75d185800ff16b452 (diff)
AVFoundation: Make AVFImageCaptureControl work without a preview
We only need to wait for a new viewfinder frame if we have a videorenderer control. If there's no videorender control, then there's no preview set and we can therefore just save the capture image immediately. Task-number: QTBUG-60329 Change-Id: I9ba34919f7cd82258482507c65db6367e330e231 Reviewed-by: Christian Stromme <christian.stromme@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/camera/avfimagecapturecontrol.h')
-rw-r--r--src/plugins/avfoundation/camera/avfimagecapturecontrol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/avfoundation/camera/avfimagecapturecontrol.h b/src/plugins/avfoundation/camera/avfimagecapturecontrol.h
index 0671034e3..2cdf0e5f3 100644
--- a/src/plugins/avfoundation/camera/avfimagecapturecontrol.h
+++ b/src/plugins/avfoundation/camera/avfimagecapturecontrol.h
@@ -80,6 +80,7 @@ private Q_SLOTS:
private:
void makeCapturePreview(CaptureRequest request, const QVideoFrame &frame, int rotation);
+ AVFCameraService *m_service;
AVFCameraSession *m_session;
AVFCameraControl *m_cameraControl;
bool m_ready;