1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-12 09:59:44 +00:00

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

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