From ba60d7975c5e74477d4e9a9f443cb66543af6c34 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 7 Aug 2026 09:37:31 +0800 Subject: [PATCH] Camera (macOS): simplifies code --- src/detection/camera/camera_apple.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/detection/camera/camera_apple.m b/src/detection/camera/camera_apple.m index da6884486..ba1509e0d 100644 --- a/src/detection/camera/camera_apple.m +++ b/src/detection/camera/camera_apple.m @@ -19,12 +19,8 @@ const char* ffDetectCamera(FFlist* result) AVCaptureDeviceType deviceType = nullptr; #ifdef MAC_OS_VERSION_14_0 - // Strangely `@available(macOS 14.0, *)` doesn't work here (#1594) - if (@available(macOS 14.0, *)) - { - if (&AVCaptureDeviceTypeExternal) - deviceType = AVCaptureDeviceTypeExternal; - } + if (&AVCaptureDeviceTypeExternal) + deviceType = AVCaptureDeviceTypeExternal; #endif if (deviceType == nullptr) deviceType = AVCaptureDeviceTypeExternalUnknown;