cocoa: don't async redraw when waiting for VO redraw

This fixes the very annoying glitch where the black bars disappear for
a single frame when going fullscreen.
This commit is contained in:
Stefano Pigozzi 2014-12-04 22:52:51 +01:00
parent c1e97161f4
commit bc1b9aa984
1 changed files with 3 additions and 1 deletions

View File

@ -720,6 +720,8 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg)
@synthesize vout = _video_output;
- (void)performAsyncResize:(NSSize)size {
struct vo_cocoa_state *s = self.vout->cocoa;
if (!s->waiting_frame)
vo_cocoa_resize_redraw(self.vout, size.width, size.height);
}