[MPlayer-dev-eng] [PATCH] screenshot hotkey for gui

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Sep 12 14:22:03 CEST 2005


Hi,
currently the hotkey for making a screenshot will not work for those
compiling with Gui (not only if the Gui is used, just when compiled with
it).
The attached patch fixes that by mapping escape to gui_stop instead quit,
thus making 's' available for screenshot.
Okay for you? Better suggestions?

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: input/input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.121
diff -u -r1.121 input.c
--- input/input.c	31 Aug 2005 02:15:02 -0000	1.121
+++ input/input.c	12 Sep 2005 12:19:33 -0000
@@ -281,8 +281,8 @@
   { { '}', 0 }, "speed_mult 2.0" },
   { { KEY_BACKSPACE, 0 }, "speed_set 1.0" },
   { { 'q', 0 }, "quit" },
-  { { KEY_ESC, 0 }, "quit" },
 #ifndef HAVE_NEW_GUI
+  { { KEY_ESC, 0 }, "quit" },
   { { 'p', 0 }, "pause" },
 #endif
   { { ' ', 0 }, "pause" },
@@ -336,7 +336,7 @@
   { { 'l', 0 }, "gui_loadfile" },
   { { 't', 0 }, "gui_loadsubtitle" },
   { { KEY_ENTER, 0 }, "gui_play" },
-  { { 's', 0 }, "gui_stop" },
+  { { KEY_ESC, 0 }, "gui_stop" },
   { { 'p', 0 }, "gui_playlist" },
   { { 'r', 0 }, "gui_preferences" },
   { { 'c', 0 }, "gui_skinbrowser" },


More information about the MPlayer-dev-eng mailing list