Skip to content

Commit 4e00f37

Browse files
committed
Camera (macOS): silence compiler warnings
1 parent 334afc9 commit 4e00f37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/detection/camera/camera_apple.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020

2121
#ifdef MAC_OS_VERSION_14_0
2222
// Strangely `@available(macOS 14.0, *)` doesn't work here (#1594)
23-
if (@available(macOS 14.0, *) && &AVCaptureDeviceTypeExternal)
23+
if (@available(macOS 14.0, *))
2424
{
25-
deviceType = AVCaptureDeviceTypeExternal;
25+
if (&AVCaptureDeviceTypeExternal)
26+
deviceType = AVCaptureDeviceTypeExternal;
2627
}
2728
#endif
2829
if (deviceType == NULL)

0 commit comments

Comments
 (0)