mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
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
|
||||
// -fullscreen method.
|
||||
return !_vo->opts->vo.fs;
|
||||
if (_vo) {
|
||||
return !_vo->opts->vo.fs;
|
||||
} else {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)handleQuitEvent:(NSAppleEventDescriptor*)e
|
||||
|
Loading…
Reference in New Issue
Block a user