Camera (macOS): silence compiler warnings

This commit is contained in:
Carter Li
2025-03-02 10:43:54 +08:00
parent 334afc9838
commit 4e00f37be9
+3 -2
View File
@@ -20,9 +20,10 @@ const char* ffDetectCamera(FFlist* result)
#ifdef MAC_OS_VERSION_14_0
// Strangely `@available(macOS 14.0, *)` doesn't work here (#1594)
if (@available(macOS 14.0, *) && &AVCaptureDeviceTypeExternal)
if (@available(macOS 14.0, *))
{
deviceType = AVCaptureDeviceTypeExternal;
if (&AVCaptureDeviceTypeExternal)
deviceType = AVCaptureDeviceTypeExternal;
}
#endif
if (deviceType == NULL)