diff options
author | wm4 <wm4@nowhere> | 2016-11-29 15:18:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-29 17:10:06 +0100 |
commit | 4958c1a556fa4f3bc4e4b3b36e04a056d90f69e1 (patch) | |
tree | 78c7f3bfc46dbf571685b69af324a6367a14b5aa /player/command.c | |
parent | 3203d6003c8e308b2ba4e277a64e717696b1b8b7 (diff) | |
download | mpv-4958c1a556fa4f3bc4e4b3b36e04a056d90f69e1.tar.bz2 mpv-4958c1a556fa4f3bc4e4b3b36e04a056d90f69e1.tar.xz |
options: some simplifications
Remove more stuff that was needed only for legacy suboptions.
One user-visible change is that parent-options like --tv are now not
visible anymore. They lead to a special error message when used before,
but now they're simply not part of the option list anymore.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c index 3d56a56fca..36850a2c51 100644 --- a/player/command.c +++ b/player/command.c @@ -5552,8 +5552,7 @@ void command_init(struct MPContext *mpctx) for (int n = 0; n < num_opts; n++) { struct m_config_option *co = m_config_get_co_index(mpctx->mconfig, n); assert(co->name[0]); - if ((co->opt->flags & M_OPT_NOPROP) || - (co->opt->type->flags & M_OPT_TYPE_HAS_CHILD)) + if (co->opt->flags & M_OPT_NOPROP) continue; struct m_property prop = {0}; |