changeset 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 6253fc19afb1
children 3898967fcc96
files configure input/input.c libao2/ao_oss.c libmpcodecs/ad_mp3.c libmpcodecs/dec_audio.c libmpcodecs/dec_video.c libmpcodecs/vd.c libmpcodecs/vf.c libmpcodecs/vf_scale.c libmpcodecs/vf_vo.c libmpdemux/aviheader.c libmpdemux/stream.c loader/module.c mencoder.c mp3lib/sr1.c mplayer.c postproc/swscale.c
diffstat 17 files changed, 70 insertions(+), 74 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon May 20 02:27:10 2002 +0000
+++ b/configure	Mon May 20 03:25:26 2002 +0000
@@ -3734,6 +3734,9 @@
 X11_INC = $_inc_x11
 X11DIR = $_ld_x11
 
+# for libavcodec:
+SRC_PATH=.
+
 # video output
 X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock
 GGI_LIB = $_ld_ggi
--- a/input/input.c	Mon May 20 02:27:10 2002 +0000
+++ b/input/input.c	Mon May 20 03:25:26 2002 +0000
@@ -1236,7 +1236,7 @@
     return;
   
   if(! mp_input_parse_config(file))
-    mp_msg(MSGT_INPUT,MSGL_WARN,"Falling back on default (hardcoded) config\n");
+    mp_msg(MSGT_INPUT,MSGL_WARN,"Falling back on default (hardcoded) input config\n");
 
 #ifdef HAVE_JOYSTICK
   if(use_joystick) {
--- 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
--- a/libmpcodecs/ad_mp3.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/ad_mp3.c	Mon May 20 03:25:26 2002 +0000
@@ -46,6 +46,7 @@
 #endif
   MP3_samplerate=MP3_channels=0;
   sh->a_buffer_len=MP3_DecodeFrame(sh->a_buffer,-1);
+  if(!sh->a_buffer_len) return 0; // unsupported layer/format
   sh->channels=2; // hack
   sh->samplerate=MP3_samplerate;
   sh->i_bps=MP3_bitrate*(1000/8);
--- a/libmpcodecs/dec_audio.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/dec_audio.c	Mon May 20 03:25:26 2002 +0000
@@ -39,7 +39,7 @@
       return 0; // no such driver
   }
   
-  mp_msg(MSGT_DECAUDIO,MSGL_INFO,"Selecting Audio Decoder: [%s] %s\n",mpadec->info->short_name,mpadec->info->name);
+  mp_msg(MSGT_DECAUDIO,MSGL_INFO,"Opening audio decoder: [%s] %s\n",mpadec->info->short_name,mpadec->info->name);
 
   // reset in/out buffer size/pointer:
   sh_audio->a_buffer_size=0;
--- a/libmpcodecs/dec_video.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/dec_video.c	Mon May 20 03:25:26 2002 +0000
@@ -60,7 +60,7 @@
       return ret;
     }
   }
-  mp_msg(MSGT_DECVIDEO,MSGL_INFO,"[PP] Sorry, postprocessing is not available\n");
+//  mp_msg(MSGT_DECVIDEO,MSGL_INFO,"[PP] Sorry, postprocessing is not available\n");
   return 0;
 }
 
@@ -157,7 +157,7 @@
 	    continue;
 	}
 	// it's available, let's try to init!
-	mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Opening Video Decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name);
+	mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Opening video decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name);
 	if(!mpvdec->init(sh_video)){
 	    mp_msg(MSGT_DECVIDEO,MSGL_INFO,"VDecoder init failed :(\n");
 	    continue; // try next...
--- a/libmpcodecs/vd.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/vd.c	Mon May 20 03:25:26 2002 +0000
@@ -135,7 +135,7 @@
         sh->disp_h=h;
 #endif
 
-    mp_msg(MSGT_DECVIDEO,MSGL_INFO,"VDec: vo config request - %d x %d, %s  \n",
+    mp_msg(MSGT_DECVIDEO,MSGL_INFO,"VDec: vo config request - %d x %d (preferred csp: %s)  \n",
 	w,h,vo_format_name(preferred_outfmt));
 
 //    if(!vf) return 1; // temp hack
@@ -233,24 +233,6 @@
     }
   }
 
-#if 0
-  if(video_out->get_info)
-  { const vo_info_t *info = video_out->get_info();
-    mp_msg(MSGT_CPLAYER,MSGL_INFO,"VO: [%s] %dx%d => %dx%d %s %s%s%s%s\n",info->short_name,
-         sh->disp_w,sh->disp_h,
-         screen_size_x,screen_size_y,
-	 vo_format_name(out_fmt),
-         fullscreen?"fs ":"",
-         vidmode?"vm ":"",
-         softzoom?"zoom ":"",
-         (flip==1)?"flip ":"");
-    mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Description: %s\n",info->name);
-    mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Author: %s\n", info->author);
-    if(info->comment && strlen(info->comment) > 0)
-        mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Comment: %s\n", info->comment);
-  }
-#endif
-
     // Time to config libvo!
     mp_msg(MSGT_CPLAYER,MSGL_V,"video_out->init(%dx%d->%dx%d,flags=%d,'%s',0x%X)\n",
                       sh->disp_w,sh->disp_h,
--- a/libmpcodecs/vf.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/vf.c	Mon May 20 03:25:26 2002 +0000
@@ -81,7 +81,7 @@
     for(y=y0;y<y0+h;y++){
 	unsigned char* dst=mpi->planes[0]+mpi->stride[0]*y+(mpi->bpp>>3)*x0;
 	if(mpi->flags&MP_IMGFLAG_YUV){
-	    unsigned int* p=dst;
+	    unsigned int* p=(unsigned int*) dst;
 	    int size=(mpi->bpp>>3)*w/4;
 	    int i;
 	    if(mpi->flags&MP_IMGFLAG_SWAPPED){
@@ -176,7 +176,7 @@
         }
     }
     if(!(mpi->flags&MP_IMGFLAG_TYPE_DISPLAYED)){
-	    mp_msg(MSGT_DECVIDEO,MSGL_INFO,"*** [%s] %s mp_image_t, %dx%dx%dbpp %s %s, %d bytes\n",
+	    mp_msg(MSGT_DECVIDEO,MSGL_V,"*** [%s] %s mp_image_t, %dx%dx%dbpp %s %s, %d bytes\n",
 		  vf->info->name,
 		  (mpi->type==MP_IMGTYPE_EXPORT)?"Exporting":
 	          ((mpi->flags&MP_IMGFLAG_DIRECT)?"Direct Rendering":"Allocating"),
@@ -220,6 +220,10 @@
 }
 
 vf_instance_t* vf_open_filter(vf_instance_t* next, char *name, char *args){
+    if(strcmp(name,"vo"))
+    mp_msg(MSGT_VFILTER,MSGL_INFO,
+	args ? "Opening video filter: [%s=%s]\n"
+	     : "Opening video filter: [%s]\n" ,name,args);
     return vf_open_plugin(filter_list,next,name,args);
 }
 
@@ -275,7 +279,7 @@
 	    return 0; // FAIL
 	}
     }
-    printf("REQ: flags=0x%X  req=0x%X  \n",flags,vf->default_reqs);
+    mp_msg(MSGT_VFILTER,MSGL_V,"REQ: flags=0x%X  req=0x%X  \n",flags,vf->default_reqs);
     miss=vf->default_reqs - (flags&vf->default_reqs);
     if(miss&VFCAP_ACCEPT_STRIDE){
 	// vf requires stride support but vf->next doesn't support it!
@@ -311,7 +315,6 @@
 	char* name=strdup(*plugin_args);
 	char* args=strchr(name,'=');
 	if(args){args[0]=0;++args;}
-	mp_msg(MSGT_VFILTER,MSGL_INFO,"Opening video filter '%s' with args '%s'...\n",name,args);
 	vf=vf_open_filter(last,name,args);
 	if(vf) last=vf;
 	free(name);
--- a/libmpcodecs/vf_scale.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/vf_scale.c	Mon May 20 03:25:26 2002 +0000
@@ -56,7 +56,7 @@
     int vo_flags;
     
     if(!best){
-	printf("SwScale: no supported outfmt found :(\n");
+	mp_msg(MSGT_VFILTER,MSGL_WARN,"SwScale: no supported outfmt found :(\n");
 	return 0;
     }
     
@@ -95,7 +95,7 @@
     if(vf->priv->h<0) vf->priv->h=height; else
     if(vf->priv->h==0) vf->priv->h=d_height;
     
-    printf("SwScale scaling %dx%d %s to %dx%d %s  \n",
+    mp_msg(MSGT_VFILTER,MSGL_DBG2,"SwScale: scaling %dx%d %s to %dx%d %s  \n",
 	width,height,vo_format_name(outfmt),
 	vf->priv->w,vf->priv->h,vo_format_name(best));
 
@@ -109,7 +109,7 @@
 	    (best==IMGFMT_I420 || best==IMGFMT_IYUV)?IMGFMT_YV12:best);
     if(!vf->priv->ctx){
 	// error...
-	printf("Couldn't init SwScaler for this setup\n");
+	mp_msg(MSGT_VFILTER,MSGL_WARN,"Couldn't init SwScaler for this setup\n");
 	return 0;
     }
     vf->priv->fmt=best;
@@ -184,7 +184,7 @@
     if(args) sscanf(args, "%d:%d",
     &vf->priv->w,
     &vf->priv->h);
-    printf("SwScale: %d x %d (-1=no scaling)\n",
+    mp_msg(MSGT_VFILTER,MSGL_V,"SwScale params: %d x %d (-1=no scaling)\n",
     vf->priv->w,
     vf->priv->h);
     return 1;
--- a/libmpcodecs/vf_vo.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpcodecs/vf_vo.c	Mon May 20 03:25:26 2002 +0000
@@ -24,10 +24,10 @@
          width, height,
          d_width, d_height,
 	 vo_format_name(outfmt),
-         (flags&1)?"fs ":"",
-         (flags&2)?"vm ":"",
-         (flags&4)?"zoom ":"",
-         (flags&8)?"flip ":"");
+         (flags&1)?" [fs]":"",
+         (flags&2)?" [vm]":"",
+         (flags&4)?" [zoom]":"",
+         (flags&8)?" [flip]":"");
     mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Description: %s\n",info->name);
     mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Author: %s\n", info->author);
     if(info->comment && strlen(info->comment) > 0)
--- a/libmpdemux/aviheader.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpdemux/aviheader.c	Mon May 20 03:25:26 2002 +0000
@@ -156,7 +156,7 @@
       stream_read(demuxer->stream,(char*) &avih,MIN(size2,sizeof(avih)));
       le2me_MainAVIHeader(&avih); // swap to machine endian
       chunksize-=MIN(size2,sizeof(avih));
-      if(verbose) print_avih(&avih); else print_avih_flags(&avih);
+      if(verbose) print_avih(&avih); // else print_avih_flags(&avih);
       break;
     case ckidSTREAMHEADER: {      // read 'strh'
       AVIStreamHeader h;
--- a/libmpdemux/stream.c	Mon May 20 02:27:10 2002 +0000
+++ b/libmpdemux/stream.c	Mon May 20 03:25:26 2002 +0000
@@ -253,7 +253,7 @@
 }
 
 void free_stream(stream_t *s){
-  printf("\n*** free_stream() called ***\n");
+//  printf("\n*** free_stream() called ***\n");
   if(s->cache_pid) {
 //    kill(s->cache_pid,SIGTERM);
     kill(s->cache_pid,SIGKILL);
--- a/loader/module.c	Mon May 20 02:27:10 2002 +0000
+++ b/loader/module.c	Mon May 20 03:25:26 2002 +0000
@@ -408,7 +408,7 @@
 	else
 	{
 	    extern char *win32_codec_name;
-	    printf("Loaded %s to address %p\n", libname, wm->module);
+//	    printf("Loaded %s to address %p\n", libname, wm->module);
 	    /* XXX: FIXME, _VERY_ UGLY HACK */
 	    if (!strcmp(libname, "m3jpegdec.ax"))
 		win32_codec_name = strdup("m3jpeg32.dll");
--- a/mencoder.c	Mon May 20 02:27:10 2002 +0000
+++ b/mencoder.c	Mon May 20 03:25:26 2002 +0000
@@ -637,8 +637,8 @@
     mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf"));
     mencoder_exit(1,NULL);
 }
-mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] drv:%d prio:%d (%s)\n",
-    video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->priority!=-1?sh_video->codec->priority:0,sh_video->codec->info);
+mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] drv:%d (%s)\n",
+    video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
 mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
 
 }
--- a/mp3lib/sr1.c	Mon May 20 02:27:10 2002 +0000
+++ b/mp3lib/sr1.c	Mon May 20 03:25:26 2002 +0000
@@ -27,6 +27,7 @@
 #include "bswap.h"
 #include "../cpudetect.h"
 #include "../liba52/mm_accel.h"
+#include "../mp_msg.h"
 
 #include "fastmemcpy.h"
 
@@ -400,7 +401,7 @@
     {
 	_has_mmx = 1;
 	make_decode_tables_MMX(outscale);
-	printf("mp3lib: made decode tables with MMX optimization\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: made decode tables with MMX optimization\n");
     }
     else
 	make_decode_tables(outscale);
@@ -426,7 +427,7 @@
     tables_done_flag = 1;
 
     dct36_func = dct36;
-    printf("init layer2&3 finished, tables done\n");
+    mp_msg(MSGT_DECAUDIO,MSGL_V,"init layer2&3 finished, tables done\n");
 
 #ifdef CAN_COMPILE_X86_ASM
 #if 0
@@ -435,7 +436,7 @@
 	/* SSE version is buggy */
 	synth_func = synth_1to1_MMX;
 	dct64_MMX_func = dct64_MMX_sse;
-	printf("mp3lib: using SSE optimized decore!\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using SSE optimized decore!\n");
     }
     else
 #endif
@@ -444,7 +445,7 @@
 	synth_func=synth_1to1_MMX;
 	dct36_func=dct36_3dnowex;
 	dct64_MMX_func=dct64_MMX_3dnowex;
-	printf("mp3lib: using 3DNow!Ex optimized decore!\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using 3DNow!Ex optimized decore!\n");
     }
     else
     if (accel & MM_ACCEL_X86_3DNOW)
@@ -452,29 +453,29 @@
 	synth_func = synth_1to1_MMX;
 	dct36_func = dct36_3dnow;
 	dct64_MMX_func = dct64_MMX_3dnow;
-	printf("mp3lib: using 3DNow! optimized decore!\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using 3DNow! optimized decore!\n");
     }
     else
     if (accel & MM_ACCEL_X86_MMX)
     {
         synth_func = synth_1to1_MMX;
 	dct64_MMX_func = dct64_MMX;
-	printf("mp3lib: using MMX optimized decore!\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using MMX optimized decore!\n");
     }
     else
     if (gCpuCaps.cpuType >= CPUTYPE_I586)
     {
 	synth_func = synth_1to1_pent;
-	printf("mp3lib: using Pentium optimized decore!\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using Pentium optimized decore!\n");
     }
     else
     {
 	synth_func = NULL; /* use default c version */
-	printf("mp3lib: using generic decore!\n");
+	mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using generic C decore!\n");
     }
 #else /* CAN_COMPILE_X86_ASM */
     synth_func = NULL;
-    printf("mp3lib: using generic decore!\n");
+    mp_msg(MSGT_DECAUDIO,MSGL_V,"mp3lib: using generic C decore!\n");
 #endif
 
 #ifdef USE_FAKE_MONO
@@ -538,6 +539,8 @@
    switch(fr.lay){
      case 2: do_layer2(&fr,single);break;
      case 3: do_layer3(&fr,single);break;
+     default:
+         return 0;	// unsupported
    }
 //   ++MP3_frames;
    return(pcm_point?pcm_point:2);
@@ -548,12 +551,12 @@
         static char *modes[4] = { "Stereo", "Joint-Stereo", "Dual-Channel", "Single-Channel" };
         static char *layers[4] = { "???" , "I", "II", "III" };
 
-        printf("\rMPEG %s, Layer %s, %ld Hz %d kbit %s, BPF: %ld\n",
+        mp_msg(MSGT_DECAUDIO,MSGL_V,"\rMPEG %s, Layer %s, %ld Hz %d kbit %s, BPF: %ld\n",
                 fr.mpeg25 ? "2.5" : (fr.lsf ? "2.0" : "1.0"),
                 layers[fr.lay],freqs[fr.sampling_frequency],
     tabsel_123[fr.lsf][fr.lay-1][fr.bitrate_index],
                 modes[fr.mode],fr.framesize+4);
-        printf("Channels: %d, copyright: %s, original: %s, CRC: %s, emphasis: %d\n",
+        mp_msg(MSGT_DECAUDIO,MSGL_V,"Channels: %d, copyright: %s, original: %s, CRC: %s, emphasis: %d\n",
                 fr.stereo,fr.copyright?"Yes":"No",
                 fr.original?"Yes":"No",fr.error_protection?"Yes":"No",
                 fr.emphasis);
--- a/mplayer.c	Mon May 20 02:27:10 2002 +0000
+++ b/mplayer.c	Mon May 20 03:25:26 2002 +0000
@@ -859,6 +859,7 @@
 #endif
 //---------------------------------------------------------------------------
 
+    mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n");
     if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename);
 
 //==================== Open VOB-Sub ============================
@@ -1128,7 +1129,7 @@
     mp_msg(MSGT_CPLAYER,MSGL_ERR,"Video: can't read properties\n");
     sh_video=d_video->sh=NULL;
   } else {
-    mp_msg(MSGT_CPLAYER,MSGL_INFO,"[V] filefmt:%d  fourcc:0x%X  size:%dx%d  fps:%5.2f  ftime:=%6.4f\n",
+    mp_msg(MSGT_CPLAYER,MSGL_V,"[V] filefmt:%d  fourcc:0x%X  size:%dx%d  fps:%5.2f  ftime:=%6.4f\n",
 	   demuxer->file_format,sh_video->format, sh_video->disp_w,sh_video->disp_h,
 	   sh_video->fps,sh_video->frametime
 	   );
@@ -1238,7 +1239,7 @@
     }
     if(audio_codec && strcmp(sh_audio->codec->name,audio_codec)) continue;
     else if(audio_family!=-1 && sh_audio->codec->driver!=audio_family) continue;
-    mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s audio codec: [%s] drv:%d (%s)\n",
+    mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s audio codec: [%s] afm:%d (%s)\n",
 	audio_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_audio->codec->name,sh_audio->codec->driver,sh_audio->codec->info);
     break;
   }
@@ -1252,8 +1253,10 @@
     mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CouldntInitAudioCodec);
     sh_audio=d_audio->sh=NULL;
   } else {
-    mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: srate=%d  chans=%d  bps=%d  sfmt=0x%X  ratio: %d->%d\n",sh_audio->samplerate,sh_audio->channels,sh_audio->samplesize,
-        sh_audio->sample_format,sh_audio->i_bps,sh_audio->o_bps);
+    mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: %d Hz, %d ch, sfmt: 0x%X (%d bps), ratio: %d->%d (%3.1f kbit)\n",
+	sh_audio->samplerate,sh_audio->channels,
+	sh_audio->sample_format,sh_audio->samplesize,
+        sh_audio->i_bps,sh_audio->o_bps,sh_audio->i_bps*8*0.001);
   }
 }
 
@@ -1309,8 +1312,8 @@
     goto main; // exit_player(MSGTR_Exit_error);
 }
 
-mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] drv:%d prio:%d (%s)\n",
-    video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->priority!=-1?sh_video->codec->priority:0,sh_video->codec->info);
+mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] vfm:%d (%s)\n",
+    video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
 mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
 
 if(auto_quality>0){
@@ -1399,10 +1402,10 @@
 if(sh_audio){
   const ao_info_t *info=audio_out->info;
   current_module="setup_audio";
-  mp_msg(MSGT_CPLAYER,MSGL_INFO,"AO: [%s] %iHz %s %s\n",
+  mp_msg(MSGT_CPLAYER,MSGL_INFO,"AO: [%s] %iHz %dch %s\n",
       info->short_name,
       force_srate?force_srate:sh_audio->samplerate,
-      sh_audio->channels>1?"Stereo":"Mono",
+      sh_audio->channels,
       audio_out_format_name(sh_audio->sample_format)
   );
   mp_msg(MSGT_CPLAYER,MSGL_V,"AO: Description: %s\nAO: Author: %s\n",
@@ -2963,6 +2966,8 @@
 
 goto_next_file:  // don't jump here after ao/vo/getch initialization!
 
+mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n");
+
 if(benchmark){
   double tot=video_time_usage+vout_time_usage+audio_time_usage;
   double total_time_usage;
--- a/postproc/swscale.c	Mon May 20 02:27:10 2002 +0000
+++ b/postproc/swscale.c	Mon May 20 03:25:26 2002 +0000
@@ -1723,26 +1723,24 @@
 		char *dither= "";
 #endif
 		if(flags&SWS_FAST_BILINEAR)
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: FAST_BILINEAR scaler, ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: FAST_BILINEAR scaler, ");
 		else if(flags&SWS_BILINEAR)
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: BILINEAR scaler, ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: BILINEAR scaler, ");
 		else if(flags&SWS_BICUBIC)
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: BICUBIC scaler, ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: BICUBIC scaler, ");
 		else if(flags&SWS_X)
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: Experimental scaler, ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: Experimental scaler, ");
 		else if(flags&SWS_POINT)
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: Nearest Neighbor / POINT scaler, ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: Nearest Neighbor / POINT scaler, ");
 		else if(flags&SWS_AREA)
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: Area Averageing scaler, ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: Area Averageing scaler, ");
 		else
-			mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: ehh flags invalid?! ");
+			mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: ehh flags invalid?! ");
 
-		if(dstFormat==IMGFMT_BGR15 || dstFormat==IMGFMT_BGR16)
-			mp_msg(MSGT_SWS,MSGL_INFO,"from %s to%s %s ", 
-				vo_format_name(srcFormat), dither, vo_format_name(dstFormat));
-		else
-			mp_msg(MSGT_SWS,MSGL_INFO,"from %s to %s ", 
-				vo_format_name(srcFormat), vo_format_name(dstFormat));
+		mp_msg(MSGT_SWS,MSGL_INFO,"%dx%d %s -> %dx%d%s %s ", 
+			srcW,srcH, vo_format_name(srcFormat), dstW,dstH,
+			(dstFormat==IMGFMT_BGR15 || dstFormat==IMGFMT_BGR16) ?
+			dither : "", vo_format_name(dstFormat));
 
 		if(cpuCaps.hasMMX2)
 			mp_msg(MSGT_SWS,MSGL_INFO,"using MMX2\n");