[Mplayer-cvslog] CVS: 0_90 mp_msg.c,1.22,1.23
Diego Biurrun CVS
diego at mplayerhq.hu
Mon Jul 14 00:16:40 CEST 2003
Update of /cvsroot/mplayer/0_90
In directory mail:/var/tmp.root/cvs-serv13625
Modified Files:
mp_msg.c
Log Message:
Ported from main:
moved some annoying messages to debug mode only
Index: mp_msg.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/mp_msg.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- mp_msg.c 27 Dec 2002 16:17:57 -0000 1.22
+++ mp_msg.c 13 Jul 2003 22:16:38 -0000 1.23
@@ -31,14 +31,18 @@
void mp_msg_init(){
#ifdef USE_I18N
+#ifdef MP_DEBUG
fprintf(stdout, "Using GNU internationalization\n");
fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
+#endif
setlocale(LC_ALL, ""); /* set from the environment variables */
bindtextdomain("mplayer", PREFIX"/share/locale");
textdomain("mplayer");
+#ifdef MP_DEBUG
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
mp_msg_set_level(MSGL_STATUS);
}
@@ -90,7 +94,8 @@
#endif
#ifdef MSG_USE_COLORS
-#if 1
+/* that's only a silly color test */
+#ifdef MP_DEBUG
{ int c;
static int flag=1;
if(flag)
More information about the MPlayer-cvslog
mailing list