summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/input/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input.c b/core/input/input.c
index 115d181e69..210aa54a4f 100644
--- a/core/input/input.c
+++ b/core/input/input.c
@@ -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);