summaryrefslogtreecommitdiffstats
path: root/libvo/vo_corevideo.m
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-25 11:07:15 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:45 +0200
commit2fa911a6f5ab4d41ae5abdd1b86c12d3b1e64003 (patch)
treed2646930656d0052da719be5f694246ac7181bc1 /libvo/vo_corevideo.m
parent68200fa5659bb345c1ffe33f77949a04846dd7ae (diff)
downloadmpv-2fa911a6f5ab4d41ae5abdd1b86c12d3b1e64003.tar.bz2
mpv-2fa911a6f5ab4d41ae5abdd1b86c12d3b1e64003.tar.xz
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
Diffstat (limited to 'libvo/vo_corevideo.m')
-rw-r--r--libvo/vo_corevideo.m4
1 files 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