summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-03-04 23:23:12 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-03-04 23:23:12 +0100
commit39824c071eb0e8052f6630c1f85ec4b0ba61e16a (patch)
tree41430505c3ba7ddca5f621fe9e469392ab348e45 /video
parenta453a0a57b05b9e610fc4e1c045f6869a1ff0d70 (diff)
downloadmpv-39824c071eb0e8052f6630c1f85ec4b0ba61e16a.tar.bz2
mpv-39824c071eb0e8052f6630c1f85ec4b0ba61e16a.tar.xz
cocoa_common: fix crash
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 4a487a9d5f..6f7c374f6f 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -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