mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01: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:
parent
eb12bc4c21
commit
88cfe47614
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user