1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00

MPLAYER_VERBOSE, new enviorment variable to control verbosity before init

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17441 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ods15 2006-01-20 20:38:46 +00:00
parent 815c782f84
commit 6fd34c98b6
2 changed files with 12 additions and 1 deletions

View File

@ -552,7 +552,8 @@ explicitly specified on the command line.
See '\-msglevel help' for a list of all modules.
.br
.I NOTE:
Messages printed before the command line is loaded cannot be controlled.
Messages printed before the command line is parsed can be controlled only
by $MPLAYER_VERBOSE, which applies to all modules.
.br
Available levels:
.PD 0
@ -9184,6 +9185,13 @@ control the behavior of MPlayer and MEncoder.
.B MPLAYER_HOME
Directory where MPlayer looks for user settings.
.
.TP
.B MPLAYER_VERBOSE
Set the initial verbosity level across all message modules.
The default is 0. Negative values result in fewer messages
while positive values result in more.
See also \-v and \-msglevel above.
.
.SS libaf:
.
.TP

View File

@ -26,6 +26,9 @@ int verbose = 0;
void mp_msg_init(){
int i;
char *env = getenv("MPLAYER_VERBOSE");
if (env)
verbose = atoi(env);
#ifdef USE_I18N
#ifdef MP_DEBUG
fprintf(stdout, "Using GNU internationalization\n");