0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

input: silence warning if input.conf is missing

It's silly to print a warning if an optional config file is missing.
Don't print anything at the default message level if an input config
is not found.

Unfortunately, the behavior is the same for explicitly passed input
config files (with --input=conf=file.conf).
This commit is contained in:
wm4 2012-11-15 12:40:39 +01:00
parent eb12bc4c21
commit 88cfe47614

View File

@ -1722,6 +1722,10 @@ static int parse_config(struct input_ctx *ictx, bool builtin, bstr data,
static int parse_config_file(struct input_ctx *ictx, char *file)
{
if (!mp_path_exists(file)) {
mp_msg(MSGT_INPUT, MSGL_V, "Input config file %s missing.\n", file);
return 0;
}
stream_t *s = open_stream(file, NULL, NULL);
if (!s) {
mp_msg(MSGT_INPUT, MSGL_V, "Can't open input config file %s.\n", file);