diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-05-07 23:51:58 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-05-07 23:51:58 +0300 |
commit | 9fbfac25daaf6bdaab4c1213a294b59bded29b24 (patch) | |
tree | e72621d807b4777fcf92cd9cb5c78454bc2bd44a /parser-mpcmd.h | |
parent | c02d0ee703a52f50c3763a0eda67cfea13e4c76a (diff) | |
download | mpv-9fbfac25daaf6bdaab4c1213a294b59bded29b24.tar.bz2 mpv-9fbfac25daaf6bdaab4c1213a294b59bded29b24.tar.xz |
options: change -v parsing
Handle -v flags as a special case in command line preparsing stage,
and change the option entry into a dummy one. Specifying "v" in config
file no longer works (and the dummy entry shows an error in this
case); "msglevel" can still be used for that purpose. Because the flag
is now interpreted at an earlier parsing stage, it now affects the
printing of some early messages that were only affected by the
MPLAYER_VERBOSE environment variable before.
The main motivation for this change is to get rid of the last
CONF_TYPE_FUNC option.
Diffstat (limited to 'parser-mpcmd.h')
-rw-r--r-- | parser-mpcmd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/parser-mpcmd.h b/parser-mpcmd.h index 3de9f626b5..948105ab6f 100644 --- a/parser-mpcmd.h +++ b/parser-mpcmd.h @@ -24,6 +24,7 @@ play_tree_t *m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv); -int m_config_preparse_command_line(m_config_t *config, int argc, char **argv); +int m_config_preparse_command_line(m_config_t *config, int argc, char **argv, + int *verbose); #endif /* MPLAYER_PARSER_MPCMD_H */ |