From 151ff8f2b9baf83ede636622cc13228bc6c20f98 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 3 Jan 2025 17:01:24 -0600 Subject: [PATCH] fix(capture/macos): fix implicit conversion of NSArray (#3502) --- src/platform/macos/av_video.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/macos/av_video.m b/src/platform/macos/av_video.m index 3b58bff55f5..bb7723bb5c5 100644 --- a/src/platform/macos/av_video.m +++ b/src/platform/macos/av_video.m @@ -32,8 +32,7 @@ @implementation AVVideo } + (NSString *)getDisplayName:(CGDirectDisplayID)displayID { - NSScreen *screens = [NSScreen screens]; - for (NSScreen *screen in screens) { + for (NSScreen *screen in [NSScreen screens]) { if (screen.deviceDescription[@"NSScreenNumber"] == [NSNumber numberWithUnsignedInt:displayID]) { return screen.localizedName; }