mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
Fix handling of comments in input.c, current code had useless ifs and in addition
could treat more data as comments than correct. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26222 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
efb09095ee
commit
6ac6e38c28
@ -1574,11 +1574,9 @@ mp_input_parse_config(char *file) {
|
|||||||
}
|
}
|
||||||
iter++;
|
iter++;
|
||||||
r = strlen(iter);
|
r = strlen(iter);
|
||||||
if(r)
|
memmove(buffer,iter,r+1);
|
||||||
memmove(buffer,iter,r+1);
|
|
||||||
bs = r+1;
|
bs = r+1;
|
||||||
if(iter[0] != '#')
|
comments = 0;
|
||||||
comments = 0;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user