summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-23 20:42:20 +0200
committerwm4 <wm4@nowhere>2017-06-23 20:42:20 +0200
commit633152e55a6f851c58267793081dea3162acfb48 (patch)
tree47c1b2f740c552a9273cdc7d9439d3918d6baeb8 /options
parent48970cd485bf2811d1bbfcd69de55ff4f9c412e2 (diff)
downloadmpv-633152e55a6f851c58267793081dea3162acfb48.tar.bz2
mpv-633152e55a6f851c58267793081dea3162acfb48.tar.xz
options: remove weird --really-quiet special behavior
This was especially grating because it causes problems with the option/property unification, uses as only thing OPT_FLAG_STORE, and behaves weird with the client API or scripts. It can be reimplemented in a much simpler way, although it needs slightly more code. (Simpler because less special cases.)
Diffstat (limited to 'options')
-rw-r--r--options/options.c3
-rw-r--r--options/options.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index 620cc67318..03ab7c89bc 100644
--- a/options/options.c
+++ b/options/options.c
@@ -261,8 +261,7 @@ const m_option_t mp_opts[] = {
// ------------------------- common options --------------------
OPT_FLAG("quiet", quiet, 0),
- OPT_FLAG_STORE("really-quiet", verbose,
- M_OPT_FIXED | CONF_PRE_PARSE | M_OPT_NOPROP, -10),
+ OPT_FLAG("really-quiet", msg_really_quiet, CONF_PRE_PARSE | UPDATE_TERM),
OPT_FLAG("terminal", use_terminal, CONF_PRE_PARSE | UPDATE_TERM),
OPT_GENERAL(char**, "msg-level", msg_levels, CONF_PRE_PARSE | UPDATE_TERM,
.type = &m_option_type_msglevels),
diff --git a/options/options.h b/options/options.h
index 851b9c507f..8c28a70d99 100644
--- a/options/options.h
+++ b/options/options.h
@@ -73,6 +73,7 @@ typedef struct MPOpts {
int use_terminal;
char *dump_stats;
int verbose;
+ int msg_really_quiet;
char **msg_levels;
int msg_color;
int msg_module;