Skip to content

Commit

Permalink
fix(capture/macos): fix implicit conversion of NSArray (#3502)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman authored Jan 3, 2025
1 parent d50611c commit 151ff8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/macos/av_video.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 151ff8f

Please sign in to comment.