summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/camera/avfcamerasession.mm
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-11-23 14:55:04 +0100
committerAndy Nichols <andy.nichols@qt.io>2017-12-12 13:44:40 +0000
commit10998733af8a3d54b795ee57a8df9a1b3e776aae (patch)
treefdafd67df3d3f1ff4c986a7d6bd39d630120ffd3 /src/plugins/avfoundation/camera/avfcamerasession.mm
parentbb06d6d0b9b3fbea877e03cf3e6287ce73b8c8f6 (diff)
AVFoundation: Use 90 for the front facing camera's orientation
Since the information is not available as to what the orientation is from the AVFoundation API then we need to rely on common sense. Since the back facing camera is 270, then it stands to reason that the front one would be 90. This has been tested on macOS and iOS and all three cameras behave correctly. Task-number: QTBUG-37955 Change-Id: I1ab079cb5d4337948541e58321df51efbadf3e39 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/camera/avfcamerasession.mm')
-rw-r--r--src/plugins/avfoundation/camera/avfcamerasession.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avfoundation/camera/avfcamerasession.mm b/src/plugins/avfoundation/camera/avfcamerasession.mm
index 0b7c0e9d8..8e3436d39 100644
--- a/src/plugins/avfoundation/camera/avfcamerasession.mm
+++ b/src/plugins/avfoundation/camera/avfcamerasession.mm
@@ -234,7 +234,7 @@ void AVFCameraSession::updateCameraDevices()
break;
case AVCaptureDevicePositionFront:
info.position = QCamera::FrontFace;
- info.orientation = 270;
+ info.orientation = 90;
break;
default:
info.position = QCamera::UnspecifiedPosition;