options: change -v parsing
commit9fbfac25daaf6bdaab4c1213a294b59bded29b24
authorUoti Urpala <uau@mplayer2.org>
Mon, 7 May 2012 20:51:58 +0000 (7 23:51 +0300)
committerUoti Urpala <uau@mplayer2.org>
Mon, 7 May 2012 20:51:58 +0000 (7 23:51 +0300)
treee72621d807b4777fcf92cd9cb5c78454bc2bd44a
parentc02d0ee703a52f50c3763a0eda67cfea13e4c76a
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.
cfg-mplayer.h
mplayer.c
parser-mpcmd.c
parser-mpcmd.h