summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-17 20:40:53 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:34 +0200
commit12bd4fe9abce797a3c98dc437579b163e0a8162a (patch)
tree132f20b8e874f2a30f1d7451057e529728343532
parent0a7a4779a3772b26c6675910146b0d5a825d8b08 (diff)
downloadmpv-12bd4fe9abce797a3c98dc437579b163e0a8162a.tar.bz2
mpv-12bd4fe9abce797a3c98dc437579b163e0a8162a.tar.xz
cmd: do not use a random value for MP_CMD_OPT_ARG
This flag is used only by the command parser. Its value overlapped with some of the existing m_option flags, but only flags that did not matter for the command parser (i.e. the flag bits used had mostly private uses in each component). It's still a bit unclean and dangerous to use an essentially random value, so reuse M_OPT_OPTIONAL_PARAM for it. Since M_OPT_OPTIONAL_PARAM has a slightly longer name than MP_CMD_OPT_ARG, I'm going to keep the old name.
-rw-r--r--input/cmd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/cmd.h b/input/cmd.h
index f6408988ab..0f74424f87 100644
--- a/input/cmd.h
+++ b/input/cmd.h
@@ -24,7 +24,7 @@
#include "options/m_option.h"
#define MP_CMD_DEF_MAX_ARGS 9
-#define MP_CMD_OPT_ARG 0x1000
+#define MP_CMD_OPT_ARG M_OPT_OPTIONAL_PARAM
struct mp_log;
struct mp_cmd;