From bc81f68d3aea0c6d7ab384323da12cb52967f91b Mon Sep 17 00:00:00 2001 From: ulion Date: Wed, 31 Oct 2007 01:23:33 +0000 Subject: Fix input.conf parse bug when comment follows key binding in the same line. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24906 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 4b0f24c45f..7567d9fc47 100644 --- a/input/input.c +++ b/input/input.c @@ -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: -- cgit v1.2.3