summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-01-02 19:17:43 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:07 +0900
commitf3e515c7903cadae1c380f1ea9f249d1576d350d (patch)
tree17136c70d3b96af8fe2a3c63d4437fa6f86d17fb
parent0547b2a637e425ff3e1e6799816d966b901f074f (diff)
downloadmpv-f3e515c7903cadae1c380f1ea9f249d1576d350d.tar.bz2
mpv-f3e515c7903cadae1c380f1ea9f249d1576d350d.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 5ac6537187..403f151273 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