summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-07-23 11:31:01 +0200
committerJan Ekström <jeebjp@gmail.com>2018-09-30 23:38:04 +0300
commit53a1a955d7c38ee5b35365ea99cafd4ceb5c2d3a (patch)
tree196dbb6503bbd13ebd830861fecdf3d08fb30f51 /video
parent5a9add1fb3370b086f2c32e4b996218ae898b529 (diff)
downloadmpv-53a1a955d7c38ee5b35365ea99cafd4ceb5c2d3a.tar.bz2
mpv-53a1a955d7c38ee5b35365ea99cafd4ceb5c2d3a.tar.xz
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. (cherry picked from commit 44e49aee3ccd48459b9c242d296bf7056d2fcdb3)
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_cb_common.swift6
1 files changed, 0 insertions, 6 deletions
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<macos_opts>(OpaquePointer(ptr))!.pointee
- }
-
view = EventsView(cocoaCB: self)
view.layer = layer
view.wantsLayer = true