From 74c342c6d36a17d4270b6e8d5e4720241c1d6161 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 18 Sep 2016 11:39:30 +0200 Subject: command: fix --quiet, --really-quiet options These are not mapped as property, so the option-property bridge has to skip them. Do this automatically if a property is not found. I know that this affects --quiet and --really-quiet, but in theory there could be more. --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player/command.c b/player/command.c index f275fcc489..7b77097011 100644 --- a/player/command.c +++ b/player/command.c @@ -302,6 +302,8 @@ int mp_on_set_option(void *ctx, struct m_config_option *co, void *data, int flag } int r = mp_property_do_silent(name, M_PROPERTY_SET, data, mpctx); + if (r == M_PROPERTY_UNKNOWN) + goto direct_option; // not mapped as property if (r != M_PROPERTY_OK) return M_OPT_INVALID; -- cgit v1.2.3