diff --git a/osdep/mac/event_helper.swift b/osdep/mac/event_helper.swift index 0f194ce8aa..6331a64a9f 100644 --- a/osdep/mac/event_helper.swift +++ b/osdep/mac/event_helper.swift @@ -75,7 +75,7 @@ class EventHelper { mpv_set_wakeup_callback(mpv, wakeup, TypeHelper.bridge(obj: self)) } - func subscribe(_ subscriber: any EventSubscriber, event: Event) { + func subscribe(_ subscriber: EventSubscriber, event: Event) { guard let mpv = mpv else { return } if !event.name.isEmpty {