mirror of https://github.com/mpv-player/mpv
vo_macosx, fix crash when closing window
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21567 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
121bab971c
commit
62ddcb8345
|
@ -248,10 +248,13 @@ static void uninit(void)
|
|||
mp_msg(MSGT_VO, MSGL_FATAL, "uninit: shmctl failed\n");
|
||||
}
|
||||
|
||||
SetSystemUIMode( kUIModeNormal, 0);
|
||||
CGDisplayShowCursor(kCGDirectMainDisplay);
|
||||
|
||||
[autoreleasepool release];
|
||||
SetSystemUIMode( kUIModeNormal, 0);
|
||||
CGDisplayShowCursor(kCGDirectMainDisplay);
|
||||
|
||||
if(mpGLView)
|
||||
{
|
||||
[autoreleasepool release];
|
||||
}
|
||||
}
|
||||
|
||||
static int preinit(const char *arg)
|
||||
|
@ -998,6 +1001,7 @@ static int control(uint32_t request, void *data, ...)
|
|||
|
||||
- (void)windowWillClose:(NSNotification *)aNotification
|
||||
{
|
||||
mpGLView = NULL;
|
||||
mplayer_put_key(KEY_ESC);
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue