changeset 14255:137896e25c24

100l, buf etc. in af_fmt2str call are already pointers...
author reimar
date Mon, 27 Dec 2004 19:43:13 +0000
parents 21e72b6d8d11
children 27002dcf0a70
files libao2/ao_alsa5.c libao2/ao_nas.c libao2/ao_sgi.c libao2/ao_sun.c libao2/pl_format.c libmpdemux/tv.c mplayer.c
diffstat 7 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa5.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/libao2/ao_alsa5.c	Mon Dec 27 19:43:13 2004 +0000
@@ -53,7 +53,7 @@
     char buf[128];
 
     mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_ALSA5_InitInfo, rate_hz,
-	channels, af_fmt2str(format));
+	channels, af_fmt2str(format, buf, 128));
 
     alsa_handler = NULL;
 
@@ -112,7 +112,7 @@
 	    ao_data.bps *= 2;
 	    break;
 	case -1:
-	    mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_ALSA5_InvalidFormatReq,af_fmt2str(format,&buf,128));
+	    mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_ALSA5_InvalidFormatReq,af_fmt2str(format,buf,128));
 	    return(0);
 	default:
 	    break;
--- a/libao2/ao_nas.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/libao2/ao_nas.c	Mon Dec 27 19:43:13 2004 +0000
@@ -393,7 +393,7 @@
 	memset(nas_data, 0, sizeof(struct ao_nas_data));
 
 	mp_msg(MSGT_AO, MSGL_V, "ao2: %d Hz  %d chans  %s\n",rate,channels,
-		af_fmt2str(format,&buf,128));
+		af_fmt2str(format,buf,128));
 
 	ao_data.format = format;
 	ao_data.samplerate = rate;
--- a/libao2/ao_sgi.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/libao2/ao_sgi.c	Mon Dec 27 19:43:13 2004 +0000
@@ -43,7 +43,7 @@
 static int init(int rate, int channels, int format, int flags) {
 
   char buf[128];  
-  mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_SGI_InitInfo, rate, (channels > 1) ? "Stereo" : "Mono", af_fmt2str(format, &buf, 128));
+  mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_SGI_InitInfo, rate, (channels > 1) ? "Stereo" : "Mono", af_fmt2str(format, buf, 128));
   
   { /* from /usr/share/src/dmedia/audio/setrate.c */
   
--- a/libao2/ao_sun.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/libao2/ao_sun.c	Mon Dec 27 19:43:13 2004 +0000
@@ -546,7 +546,7 @@
 
     if (!ok) {
 	mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_UnsupSampleRate,
-	       channels, af_fmt2str(format, &buf, 128), rate);
+	       channels, af_fmt2str(format, buf, 128), rate);
 	return 0;
     }
 
--- a/libao2/pl_format.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/libao2/pl_format.c	Mon Dec 27 19:43:13 2004 +0000
@@ -137,8 +137,8 @@
 
   // Tell the world what we are up to
   printf("[pl_format] Input format: %s, output format: %s \n",
-	 af_fmt2str(ao_plugin_data.format, &buf1, 128),
-	 af_fmt2str(ao_plugin_cfg.pl_format_type, &buf2, 128));
+	 af_fmt2str(ao_plugin_data.format, buf1, 128),
+	 af_fmt2str(ao_plugin_cfg.pl_format_type, buf2, 128));
 
   // We are changing the format
   ao_plugin_data.format=ao_plugin_cfg.pl_format_type;
--- a/libmpdemux/tv.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/libmpdemux/tv.c	Mon Dec 27 19:43:13 2004 +0000
@@ -544,7 +544,7 @@
 	    case AF_FORMAT_AC3:
 	    default:
 		mp_msg(MSGT_TV, MSGL_ERR, "Audio type '%s (%x)' unsupported!\n",
-		    af_fmt2str(audio_format, &buf, 128), audio_format);
+		    af_fmt2str(audio_format, buf, 128), audio_format);
 		goto no_audio;
 	}
 	
--- a/mplayer.c	Mon Dec 27 19:34:42 2004 +0000
+++ b/mplayer.c	Mon Dec 27 19:43:13 2004 +0000
@@ -2108,7 +2108,7 @@
     char buf[128];
     mp_msg(MSGT_CPLAYER,MSGL_INFO,"AF_pre: %dHz %dch %s\n",
       ao_data.samplerate, ao_data.channels,
-      af_fmt2str(ao_data.format,&buf,128));
+      af_fmt2str(ao_data.format, buf, 128));
   }
 #endif  
   current_module="ao2_init";
@@ -2128,7 +2128,7 @@
     mp_msg(MSGT_CPLAYER,MSGL_INFO,"AO: [%s] %dHz %dch %s (%d bps)\n",
       audio_out->info->short_name,
       ao_data.samplerate, ao_data.channels,
-      af_fmt2str(ao_data.format, &buf, 128),
+      af_fmt2str(ao_data.format, buf, 128),
       af_fmt2bits(ao_data.format)/8 );
     mp_msg(MSGT_CPLAYER,MSGL_V,"AO: Description: %s\nAO: Author: %s\n",
       audio_out->info->name, audio_out->info->author);