cocoa_common: avoid situational nil dereferencing

This commit is contained in:
Stefano Pigozzi 2012-10-19 23:47:03 +02:00
parent e3fe5b8735
commit cc6ca112e0
1 changed files with 3 additions and 2 deletions

View File

@ -592,9 +592,10 @@ void create_menu()
- (void)windowDidResize:(NSNotification *) notification
{
struct vo_cocoa_state *s = _vo->cocoa;
if (_vo)
if (_vo) {
struct vo_cocoa_state *s = _vo->cocoa;
s->did_resize = YES;
}
}
- (void)fullscreen