mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-24 12:10:18 +08:00
cocoa_common: avoid situational nil dereferencing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user