[MPlayer-cvslog] r25436 - trunk/libmenu/menu.c

ulion subversion at mplayerhq.hu
Mon Dec 17 15:58:46 CET 2007


Author: ulion
Date: Mon Dec 17 15:58:46 2007
New Revision: 25436

Log:
Ignore elements of keybindings other than 'binding'.


Modified:
   trunk/libmenu/menu.c

Modified: trunk/libmenu/menu.c
==============================================================================
--- trunk/libmenu/menu.c	(original)
+++ trunk/libmenu/menu.c	Mon Dec 17 15:58:46 2007
@@ -142,6 +142,7 @@ static int menu_parse_config(char* buffe
           }
           if(r == 0)
             break;
+          if (!strcasecmp(element, "binding")) {
           key = asx_get_attrib("key",attribs);
           cmd = asx_get_attrib("cmd",attribs);
           if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) {
@@ -158,6 +159,7 @@ static int menu_parse_config(char* buffe
           else
             free(cmd);
           free(key);
+          }
           free(element);
           asx_free_attribs(attribs);
           free(b);



More information about the MPlayer-cvslog mailing list