moved some annonying messages to debug mode only

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10416 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-07-13 14:43:28 +00:00
parent 39148230df
commit 136a4127d7
1 changed files with 7 additions and 2 deletions

View File

@ -31,14 +31,18 @@ static int mp_msg_levels[MSGT_MAX]; // verbose level of this module
void mp_msg_init(){ void mp_msg_init(){
#ifdef USE_I18N #ifdef USE_I18N
#ifdef MP_DEBUG
fprintf(stdout, "Using GNU internationalization\n"); fprintf(stdout, "Using GNU internationalization\n");
fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
#endif
setlocale(LC_ALL, ""); /* set from the environment variables */ setlocale(LC_ALL, ""); /* set from the environment variables */
bindtextdomain("mplayer", PREFIX"/share/locale"); bindtextdomain("mplayer", PREFIX"/share/locale");
textdomain("mplayer"); textdomain("mplayer");
#ifdef MP_DEBUG
fprintf(stdout, "Current domain: %s\n", textdomain(NULL)); fprintf(stdout, "Current domain: %s\n", textdomain(NULL));
fprintf(stdout, "Current dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL));
#endif
#endif #endif
mp_msg_set_level(MSGL_STATUS); mp_msg_set_level(MSGL_STATUS);
} }
@ -90,7 +94,8 @@ void mp_msg_c( int x, const char *format, ... ){
#endif #endif
#ifdef MSG_USE_COLORS #ifdef MSG_USE_COLORS
#if 1 /* that's only a silly color test */
#ifdef MP_DEBUG
{ int c; { int c;
static int flag=1; static int flag=1;
if(flag) if(flag)