summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-15 15:41:55 +0100
committerwm4 <wm4@nowhere>2012-11-16 21:21:15 +0100
commitdb45c8771ae54dbacd96367a72edbb6e2032e579 (patch)
tree8c8a787bb699b7625ec2149bcfcab4e8bf244fa8 /core
parent2628ff6224946bb7f3cf460f0c9c6969783e255c (diff)
downloadmpv-db45c8771ae54dbacd96367a72edbb6e2032e579.tar.bz2
mpv-db45c8771ae54dbacd96367a72edbb6e2032e579.tar.xz
options: respect --no-msgcolor during early program start
Using --no-msgcolor, error messages that happened before "really" parsing the command line were still printed in color. Add the CONF_PRE_PARSE flag to make this option take effect as early as possible.
Diffstat (limited to 'core')
-rw-r--r--core/cfg-mplayer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 0e403e0769..776798aaad 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -320,7 +320,7 @@ const m_option_t common_opts[] = {
// -v is handled in command line preparser
{"v", NULL, CONF_TYPE_FLAG, CONF_GLOBAL | CONF_NOCFG, 0, 0, NULL},
{"msglevel", (void *) msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
- {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
+ {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL | CONF_PRE_PARSE, 0, 1, NULL},
{"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
#ifdef CONFIG_PRIORITY
{"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},