[MPlayer-cvslog] r24906 - trunk/input/input.c

ulion subversion at mplayerhq.hu
Wed Oct 31 02:23:33 CET 2007


Author: ulion
Date: Wed Oct 31 02:23:33 2007
New Revision: 24906

Log:
Fix input.conf parse bug when comment follows key binding in the same line.


Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	(original)
+++ trunk/input/input.c	Wed Oct 31 02:23:33 2007
@@ -757,7 +757,7 @@ mp_input_parse_cmd(char* str) {
     while(ptr[0] != ' ' && ptr[0] != '\t' && ptr[0] != '\0') ptr++;
     if(ptr[0] == '\0') break;
     while(ptr[0] == ' ' || ptr[0] == '\t') ptr++;
-    if(ptr[0] == '\0') break;
+    if(ptr[0] == '\0' || ptr[0] == '#') break;
     cmd->args[i].type = cmd_def->args[i].type;
     switch(cmd_def->args[i].type) {
     case MP_CMD_ARG_INT:



More information about the MPlayer-cvslog mailing list