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:
parent
e3fe5b8735
commit
cc6ca112e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user