diff options
author | Akemi <der.richter@gmx.de> | 2016-12-15 23:06:04 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2016-12-16 16:32:26 +0100 |
commit | 2b8b17402ed59815019b309051b277ba4de82f3b (patch) | |
tree | 5181d5fbe3621fcf7da6bbb055d1e72c54dd89b9 /video/out/cocoa/window.m | |
parent | aab98776f602a4bec1a74ee87eb829aadf6437ea (diff) | |
download | mpv-2b8b17402ed59815019b309051b277ba4de82f3b.tar.bz2 mpv-2b8b17402ed59815019b309051b277ba4de82f3b.tar.xz |
cocoa: cosmetic fixes
Diffstat (limited to 'video/out/cocoa/window.m')
-rw-r--r-- | video/out/cocoa/window.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m index 6d63263cb4..68e5222a03 100644 --- a/video/out/cocoa/window.m +++ b/video/out/cocoa/window.m @@ -309,7 +309,8 @@ _unfs_content_frame = [self frameRect:_unfs_content_frame forCenteredContentSize:newSize]; } -- (void)tryDequeueSize { +- (void)tryDequeueSize +{ if (_queued_video_size.width <= 0.0 || _queued_video_size.height <= 0.0) return; @@ -330,7 +331,8 @@ } } -- (void)windowDidBecomeMain:(NSNotification *)notification { +- (void)windowDidBecomeMain:(NSNotification *)notification +{ [self tryDequeueSize]; } @end |