summaryrefslogtreecommitdiffstats
path: root/options/m_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'options/m_option.c')
-rw-r--r--options/m_option.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/options/m_option.c b/options/m_option.c
index f5a9ce5573..9c9101f2e7 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -3217,9 +3217,7 @@ static int parse_obj_settings(struct mp_log *log, struct bstr opt, int op,
} else {
char name[80];
snprintf(name, sizeof(name), "%.*s", BSTR_P(str));
- if (!list->allow_unknown_entries ||
- (list->check_unknown_entry && !list->check_unknown_entry(name)))
- {
+ if (list->check_unknown_entry && !list->check_unknown_entry(name)) {
mp_err(log, "Option %.*s: %.*s doesn't exist.\n",
BSTR_P(opt), BSTR_P(str));
return M_OPT_INVALID;