input: skip BOM in input.conf

This commit is contained in:
wm4 2014-07-12 21:25:32 +02:00
parent fed69f3637
commit a09329bcf7
1 changed files with 1 additions and 0 deletions

View File

@ -1450,6 +1450,7 @@ static int parse_config_file(struct input_ctx *ictx, char *file, bool warn)
MP_ERR(ictx, "Can't open input config file %s.\n", file);
goto done;
}
stream_skip_bom(s);
bstr data = stream_read_complete(s, tmp, 1000000);
if (data.start) {
MP_VERBOSE(ictx, "Parsing input config file %s\n", file);