diff options
author | wm4 <wm4@nowhere> | 2016-09-18 11:39:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-18 16:08:21 +0200 |
commit | 74c342c6d36a17d4270b6e8d5e4720241c1d6161 (patch) | |
tree | 00b3d4dcc174a6686ca87144a50336d0d2867275 /player | |
parent | f8659d0013504bed2d8ae728ef16056003aa41d6 (diff) | |
download | mpv-74c342c6d36a17d4270b6e8d5e4720241c1d6161.tar.bz2 mpv-74c342c6d36a17d4270b6e8d5e4720241c1d6161.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |