summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_cb_common.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-26 23:45:18 +0100
committerder richter <der.richter@gmx.de>2024-03-29 14:20:40 +0100
commited0587692f30b4b27a8ad3a7178021cec25844b1 (patch)
tree955c4c984bd5a5f5d500194c19cc7aa6e1b9a05f /video/out/cocoa_cb_common.swift
parentceaabb7b9831c43412e75e40055cf899ca37fbab (diff)
downloadmpv-ed0587692f30b4b27a8ad3a7178021cec25844b1.tar.bz2
mpv-ed0587692f30b4b27a8ad3a7178021cec25844b1.tar.xz
mac/log: rename log functions and cleanup class
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r--video/out/cocoa_cb_common.swift8
1 files changed, 4 insertions, 4 deletions
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<vo>) {
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
}