From ed0587692f30b4b27a8ad3a7178021cec25844b1 Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 26 Mar 2024 23:45:18 +0100 Subject: mac/log: rename log functions and cleanup class --- video/out/cocoa_cb_common.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'video/out/cocoa_cb_common.swift') diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 3953a65e21..9f32ed651f 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -47,7 +47,7 @@ class CocoaCB: Common, EventSubscriber { backendState = .needsInit guard let layer = self.layer else { - log.sendError("Something went wrong, no GLLayer was initialized") + log.error("Something went wrong, no GLLayer was initialized") exit(1) } @@ -89,7 +89,7 @@ class CocoaCB: Common, EventSubscriber { func updateWindowSize(_ vo: UnsafeMutablePointer) { guard let targetScreen = getTargetScreen(forFullscreen: false) ?? NSScreen.main else { - log.sendWarning("Couldn't update Window size, no Screen available") + log.warning("Couldn't update Window size, no Screen available") return } @@ -117,7 +117,7 @@ class CocoaCB: Common, EventSubscriber { override func updateICCProfile() { guard let colorSpace = window?.screen?.colorSpace else { - log.sendWarning("Couldn't update ICC Profile, no color space available") + log.warning("Couldn't update ICC Profile, no color space available") return } @@ -170,7 +170,7 @@ class CocoaCB: Common, EventSubscriber { let ccb = unsafeBitCast(ctx, to: CocoaCB.self) guard let vo = v, let events = e else { - ccb.log.sendWarning("Unexpected nil value in Control Callback") + ccb.log.warning("Unexpected nil value in Control Callback") return VO_FALSE } -- cgit v1.2.3