diff --git a/osdep/mac/libmpv_helper.swift b/osdep/mac/libmpv_helper.swift index 2884c141f3..65e402e5ab 100644 --- a/osdep/mac/libmpv_helper.swift +++ b/osdep/mac/libmpv_helper.swift @@ -154,15 +154,6 @@ class LibmpvHelper { } } - func setRenderLux(_ lux: Int) { - if mpvRenderContext == nil { return } - var light = lux - withUnsafeMutableBytes(of: &light) { (ptr: UnsafeMutableRawBufferPointer) in - let params = mpv_render_param(type: MPV_RENDER_PARAM_AMBIENT_LIGHT, data: ptr.baseAddress) - mpv_render_context_set_parameter(mpvRenderContext, params) - } - } - func uninit() { mpv_render_context_set_update_callback(mpvRenderContext, nil, nil) mp_render_context_set_control_callback(mpvRenderContext, nil, nil) diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 67e6b933ce..ad0c393d2b 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -110,10 +110,6 @@ class CocoaCB: Common, EventSubscriber { return kCVReturnSuccess } - override func lightSensorUpdate() { - libmpv.setRenderLux(Int(lmuToLux(lastLmu))) - } - override func updateICCProfile() { guard let colorSpace = window?.screen?.colorSpace else { log.warning("Couldn't update ICC Profile, no color space available") diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index a5f32a9678..b3e6674eee 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -274,7 +274,7 @@ class Common: NSObject { } func lightSensorUpdate() { - log.warning("lightSensorUpdate not implemented") + flagEvents(VO_EVENT_AMBIENT_LIGHTING_CHANGED) } func initLightSensor() { diff --git a/video/out/mac_common.swift b/video/out/mac_common.swift index 8df82ce356..540f4702ef 100644 --- a/video/out/mac_common.swift +++ b/video/out/mac_common.swift @@ -147,10 +147,6 @@ class MacCommon: Common { timer?.updatePolicy(periodSeconds: 1 / currentFps()) } - override func lightSensorUpdate() { - flagEvents(VO_EVENT_AMBIENT_LIGHTING_CHANGED) - } - override func updateICCProfile() { flagEvents(VO_EVENT_ICC_PROFILE_CHANGED) }