[MPlayer-dev-eng] [PATCH] avoid spamming no bind key for when the code code is 0
- Date: Thu, 8 May 2008 03:27:11 +0200
- From: Gianluigi Tiesi <mplayer@xxxxxxxxxx>
- Subject: [MPlayer-dev-eng] [PATCH] avoid spamming no bind key for when the code code is 0
Hi,
while pressing alt or control key on win32
I get keys[0] = 0
and mplayer keep spamming about an "unmappable" key
Regards
--
Gianluigi Tiesi <sherpya@xxxxxxxxxx>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
diff -NpuBr -Xexclude.txt main/input/input.c sherpya/input/input.c
--- main/input/input.c 2008-04-30 08:17:37.656250000 +0200
+++ sherpya/input/input.c 2008-05-08 03:18:25.359375000 +0200
@@ -1044,6 +1044,7 @@ mp_input_get_cmd_from_keys(int n,int* ke
cmd = mp_input_find_bind_for_key(def_cmd_binds,n,keys);
if(cmd == NULL) {
+ if (!keys[0]) return NULL;
mp_msg(MSGT_INPUT,MSGL_WARN,MSGTR_NoBindFound,mp_input_get_key_name(keys[0]));
if(n > 1) {
int s;
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng