From db45c8771ae54dbacd96367a72edbb6e2032e579 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Nov 2012 15:41:55 +0100 Subject: 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. --- core/cfg-mplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, -- cgit v1.2.3