Mercurial > mplayer.hg
diff libao2/ao_oss.c @ 6138:523014df7d32
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
author | arpi |
---|---|
date | Mon, 20 May 2002 03:25:26 +0000 |
parents | 0b3b6d03779c |
children | 74115095d9fe |
line wrap: on
line diff
--- a/libao2/ao_oss.c Mon May 20 02:27:10 2002 +0000 +++ b/libao2/ao_oss.c Mon May 20 03:25:26 2002 +0000 @@ -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