[MPlayer-dev-eng] [PATCH] avoid spamming no bind key for when the code code is 0

Gianluigi Tiesi mplayer at netfarm.it
Thu May 8 03:27:11 CEST 2008


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 at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
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;


More information about the MPlayer-dev-eng mailing list