comparison mp_msg.c @ 17440:de9a36b1082c

MPLAYER_VERBOSE, new enviorment variable to control verbosity before init
author ods15
date Fri, 20 Jan 2006 20:38:46 +0000
parents 637a2f4ff216
children f580a7755ac5
comparison
equal deleted inserted replaced
17439:f6e39517d5b6 17440:de9a36b1082c
24 int mp_msg_level_all = MSGL_STATUS; 24 int mp_msg_level_all = MSGL_STATUS;
25 int verbose = 0; 25 int verbose = 0;
26 26
27 void mp_msg_init(){ 27 void mp_msg_init(){
28 int i; 28 int i;
29 char *env = getenv("MPLAYER_VERBOSE");
30 if (env)
31 verbose = atoi(env);
29 #ifdef USE_I18N 32 #ifdef USE_I18N
30 #ifdef MP_DEBUG 33 #ifdef MP_DEBUG
31 fprintf(stdout, "Using GNU internationalization\n"); 34 fprintf(stdout, "Using GNU internationalization\n");
32 fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); 35 fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
33 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); 36 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));