mirror of https://github.com/mpv-player/mpv
Fix input command parser for using only tab to separate the arguments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24844 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bddc41ec40
commit
9e5f80ded3
|
@ -754,8 +754,8 @@ mp_input_parse_cmd(char* str) {
|
|||
ptr = str;
|
||||
|
||||
for(i=0; ptr && i < MP_CMD_MAX_ARGS; i++) {
|
||||
ptr = strchr(ptr,' ');
|
||||
if(!ptr) break;
|
||||
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;
|
||||
cmd->args[i].type = cmd_def->args[i].type;
|
||||
|
|
Loading…
Reference in New Issue