diff options
author | wm4 <wm4@nowhere> | 2016-09-23 21:04:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-23 21:04:20 +0200 |
commit | f0fd6633205fe0b477032d2be5028a204c327e0b (patch) | |
tree | d88cf3bb29827f2fe63a8227d7e17e04792ef071 /player | |
parent | b9153ee177387efeedd1d5294b07a49e928d2ebd (diff) | |
download | mpv-f0fd6633205fe0b477032d2be5028a204c327e0b.tar.bz2 mpv-f0fd6633205fe0b477032d2be5028a204c327e0b.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |