From 4958c1a556fa4f3bc4e4b3b36e04a056d90f69e1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 29 Nov 2016 15:18:40 +0100 Subject: 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. --- player/command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/command.c') 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}; -- cgit v1.2.3