cocoa_common: fix crash

This commit is contained in:
Stefano Pigozzi 2013-03-04 23:23:12 +01:00
parent a453a0a57b
commit 39824c071e
1 changed files with 5 additions and 1 deletions

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