# HG changeset patch # User reimar # Date 1280068858 0 # Node ID 8e043273075dd5d000583f1074dc99ac6f07301b # Parent d2a29f5447df5ed85259117259c0d80a7ddc287c 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. diff -r d2a29f5447df -r 8e043273075d libvo/vo_corevideo.m --- a/libvo/vo_corevideo.m Sun Jul 25 13:53:21 2010 +0000 +++ b/libvo/vo_corevideo.m Sun Jul 25 14:40:58 2010 +0000 @@ -1032,9 +1032,12 @@ 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