mirror of https://github.com/mpv-player/mpv
cocoa_common: fix crash
This commit is contained in:
parent
a453a0a57b
commit
39824c071e
|
@ -696,7 +696,11 @@ void create_menu()
|
||||||
{
|
{
|
||||||
// this is only valid as a starting value. it will be rewritten in the
|
// this is only valid as a starting value. it will be rewritten in the
|
||||||
// -fullscreen method.
|
// -fullscreen method.
|
||||||
|
if (_vo) {
|
||||||
return !_vo->opts->vo.fs;
|
return !_vo->opts->vo.fs;
|
||||||
|
} else {
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)handleQuitEvent:(NSAppleEventDescriptor*)e
|
- (void)handleQuitEvent:(NSAppleEventDescriptor*)e
|
||||||
|
|
Loading…
Reference in New Issue