From 39824c071eb0e8052f6630c1f85ec4b0ba61e16a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Mar 2013 23:23:12 +0100 Subject: cocoa_common: fix crash --- video/out/cocoa_common.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'video') 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 -- cgit v1.2.3