mirror of https://github.com/mpv-player/mpv
cocoa-cb: fix race on shutdown and toggling fullscreen
since commit 15c48f3
we were force to start drawing on the main queue
again. this has several unintended side effects due to the nature of the
main queue. in this case fullscreen event and shutdown event are
executed out of order and fullscreening is done after shutdown, leading
to accessing options that are already de-initialised.
just nil the window on shutdown and make it impossible to fullscreen
after shutdown.
Fixes #14810
This commit is contained in:
parent
23e774d514
commit
9a1c637e9e
|
@ -262,6 +262,7 @@ class CocoaCB: Common, EventSubscriber {
|
||||||
|
|
||||||
uninit()
|
uninit()
|
||||||
uninitCommon()
|
uninitCommon()
|
||||||
|
window = nil
|
||||||
|
|
||||||
layer?.lockCglContext()
|
layer?.lockCglContext()
|
||||||
libmpv.uninit()
|
libmpv.uninit()
|
||||||
|
|
Loading…
Reference in New Issue