[Mplayer-cvslog] CVS: main/libao2 ao_oss.c,1.24,1.25

Arpi of Ize arpi at mplayerhq.hu
Mon May 20 05:25:55 CEST 2002


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv6187/libao2

Modified Files:
	ao_oss.c 
Log Message:
big cosmetics patch, cleanup of messages printed by mplayer and libs.
some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2
mplayer's output is now shorter, readable and consistent


Index: ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- ao_oss.c	13 May 2002 20:11:51 -0000	1.24
+++ ao_oss.c	20 May 2002 03:25:23 -0000	1.25
@@ -91,6 +91,7 @@
 // return: 1=success 0=fail
 static int init(int rate,int channels,int format,int flags){
 
+  if (verbose)
   printf("ao2: %d Hz  %d chans  %s\n",rate,channels,
     audio_out_format_name(format));
 
@@ -109,14 +110,14 @@
   audio_fd=open(dsp, O_WRONLY);
 #endif
   if(audio_fd<0){
-    printf("Can't open audio device %s: %s  -> no sound\n", dsp, strerror(errno));
+    printf("Can't open audio device %s: %s\n", dsp, strerror(errno));
     return 0;
   }
 
 #ifdef __linux__
   /* Remove the non-blocking flag */
   if(fcntl(audio_fd, F_SETFL, 0) < 0) {
-   printf("Can't make filedescriptor non-blocking: %s -> no sound\n", strerror(errno));
+   printf("Can't make filedescriptor non-blocking: %s\n", strerror(errno));
    return 0;
   }  
 #endif




More information about the MPlayer-cvslog mailing list