We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75da934 commit 2eae5a8Copy full SHA for 2eae5a8
src/detection/camera/camera_apple.m
@@ -16,18 +16,16 @@
16
#ifdef MAC_OS_X_VERSION_10_15
17
FF_SUPPRESS_IO(); // #822
18
19
- AVCaptureDeviceType deviceType;
+ AVCaptureDeviceType deviceType = NULL;
20
21
#ifdef MAC_OS_VERSION_14_0
22
if (@available(macOS 14.0, *))
23
{
24
deviceType = AVCaptureDeviceTypeExternal;
25
}
26
- else
27
#endif
28
- {
+ if (deviceType == NULL)
29
deviceType = AVCaptureDeviceTypeExternalUnknown;
30
- }
31
32
AVCaptureDeviceDiscoverySession* session = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:@[AVCaptureDeviceTypeBuiltInWideAngleCamera, deviceType]
33
mediaType:AVMediaTypeVideo
0 commit comments