[MPlayer-cvslog] r31822 - trunk/libvo/vo_corevideo.m
reimar
subversion at mplayerhq.hu
Sun Jul 25 16:40:58 CEST 2010
Author: reimar
Date: Sun Jul 25 16:40:58 2010
New Revision: 31822
Log:
Change window-closing handling so it works properly if the
KEY_CLOSE_WIN is rebound to e.g. skip to next file or not
bound at all.
Modified:
trunk/libvo/vo_corevideo.m
Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m Sun Jul 25 15:53:21 2010 (r31821)
+++ trunk/libvo/vo_corevideo.m Sun Jul 25 16:40:58 2010 (r31822)
@@ -1032,9 +1032,12 @@ static int control(uint32_t request, voi
return YES;
}
-- (void)windowWillClose:(NSNotification *)aNotification
+- (BOOL)windowShouldClose:(id)sender
{
- mpGLView = NULL;
mplayer_put_key(KEY_CLOSE_WIN);
+ // We have to wait for MPlayer to handle this,
+ // otherwise we are in trouble if the
+ // KEY_CLOSE_WIN handler is disabled
+ return NO;
}
@end
More information about the MPlayer-cvslog
mailing list