From 44e49aee3ccd48459b9c242d296bf7056d2fcdb3 Mon Sep 17 00:00:00 2001 From: Akemi Date: Mon, 23 Jul 2018 11:31:01 +0200 Subject: cocoa-cb: move macOS option retrieval to the earliest point possible moved the retrieval of the macOS specific options from the backend initialisation to the initialisation of the CocoaCB class, the earliest point possible. this way macOS specific options can be used for the opengl context creation for example. --- video/out/cocoa_cb_common.swift | 6 ------ 1 file changed, 6 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 1865cc9b5c..790a07deb8 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -61,12 +61,6 @@ class CocoaCB: NSObject { if backendState == .uninitialized { backendState = .needsInit - if let app = NSApp as? Application { - let ptr = mp_get_config_group(mpv.mpctx!, vo.pointee.global, - app.getMacOSConf()) - mpv.macOpts = UnsafeMutablePointer(OpaquePointer(ptr))!.pointee - } - view = EventsView(cocoaCB: self) view.layer = layer view.wantsLayer = true -- cgit v1.2.3