From f0fd6633205fe0b477032d2be5028a204c327e0b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Sep 2016 21:04:20 +0200 Subject: m_config, command: remove some minor code duplication I would have been fine with this, but now I want to add another flag, and the duplication would become more messy than having a strange function for deduplication. --- player/command.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'player') diff --git a/player/command.c b/player/command.c index eae3f7116e..fe1596f18c 100644 --- a/player/command.c +++ b/player/command.c @@ -320,9 +320,8 @@ int mp_on_set_option(void *ctx, struct m_config_option *co, void *data, int flag if (r != M_PROPERTY_OK) return M_OPT_INVALID; - // The flag can't be passed through the property layer correctly. - if (flags & M_SETOPT_FROM_CMDLINE) - co->is_set_from_cmdline = true; + // The flags can't be passed through the property layer correctly. + m_config_mark_co_flags(co, flags); return 0; -- cgit v1.2.3