summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-01-02 19:17:43 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-01-02 19:19:23 +0100
commit43faae7a1ee921b9d96fed94aad69b183fbf4200 (patch)
treef0a2db17efafde24b1c04ddd7c30ad57fae2ab8c
parent44cc65e5fbb41c731e7762ee7d2396a8130e1b9d (diff)
downloadmpv-43faae7a1ee921b9d96fed94aad69b183fbf4200.tar.bz2
mpv-43faae7a1ee921b9d96fed94aad69b183fbf4200.tar.xz
cocoa: fix NSMapGet error
regression from 64b6b2ea45
-rw-r--r--video/out/cocoa/events_view.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 2833bf2773..6a0190e21c 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -94,8 +94,10 @@
- (void)clear
{
- self.clearing = YES;
- [self exitFullScreenModeWithOptions:nil];
+ if (self.inFullScreenMode) {
+ self.clearing = YES;
+ [self exitFullScreenModeWithOptions:nil];
+ }
}
// mpv uses flipped coordinates, because X11 uses those. So let's just use them