mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
10l my last fix choked the last command definition, this fix seems to work correct.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8276 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6f68af6208
commit
6dc1b1fd0c
@ -1247,7 +1247,7 @@ mp_input_parse_config(char *file) {
|
||||
}
|
||||
}
|
||||
// Empty buffer : return
|
||||
if(eof || (bs <= 0)) {
|
||||
if(bs <= 1) {
|
||||
mp_msg(MSGT_INPUT,MSGL_INFO,"Input config file %s parsed : %d binds\n",file,n_binds);
|
||||
if(binds)
|
||||
cmd_binds = binds;
|
||||
@ -1351,7 +1351,7 @@ mp_input_parse_config(char *file) {
|
||||
char cmd[end-iter+1];
|
||||
strncpy(cmd,iter,end-iter);
|
||||
cmd[end-iter] = '\0';
|
||||
//printf("Set bind %d => %s\n",code,cmd);
|
||||
//printf("Set bind %d => %s\n",keys[0],cmd);
|
||||
mp_input_bind_keys(keys,cmd);
|
||||
n_binds++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user