1
0
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:
Stefano Pigozzi 2013-03-04 23:23:12 +01:00
parent a453a0a57b
commit 39824c071e

View File

@ -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