From 2fa911a6f5ab4d41ae5abdd1b86c12d3b1e64003 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 25 Jul 2010 11:07:15 +0000 Subject: [PATCH] vo_corevideo: Send KEY_CLOSE_WIN instead of KEY_ESC for quit Send KEY_CLOSE_WIN instead of KEY_ESC when the user requested corevideo to quit, KEY_ESC might have been rebound to something else. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31801 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_corevideo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m index e40ae9c20b..141cecda9a 100644 --- a/libvo/vo_corevideo.m +++ b/libvo/vo_corevideo.m @@ -621,7 +621,7 @@ static int control(uint32_t request, void *data) { if(sender == kQuitCmd) { - mplayer_put_key(KEY_ESC); + mplayer_put_key(KEY_CLOSE_WIN); } if(sender == kHalfScreenCmd) @@ -1044,6 +1044,6 @@ static int control(uint32_t request, void *data) - (void)windowWillClose:(NSNotification *)aNotification { mpGLView = NULL; - mplayer_put_key(KEY_ESC); + mplayer_put_key(KEY_CLOSE_WIN); } @end -- 2.11.4.GIT