[Mplayer-cvslog] CVS: main/libao2 ao_mpegpes.c,1.9,1.10

Alex Beregszaszi alex at mplayerhq.hu
Fri Aug 30 13:20:54 CEST 2002


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

Modified Files:
	ao_mpegpes.c 
Log Message:
mp_msg'ized

Index: ao_mpegpes.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_mpegpes.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ao_mpegpes.c	31 Jul 2002 05:25:57 -0000	1.9
+++ ao_mpegpes.c	30 Aug 2002 11:20:51 -0000	1.10
@@ -11,6 +11,8 @@
 
 #include "afmt.h"
 
+#include "../mp_msg.h"
+
 #ifdef HAVE_DVB
 #include <ost/audio.h>
 audioMixer_t dvb_mixer={255,255};
@@ -52,7 +54,8 @@
 	    if(dvb_mixer.volume_right>255) dvb_mixer.volume_right=255;
 	    //	 printf("Setting DVB volume: %d ; %d  \n",dvb_mixer.volume_left,dvb_mixer.volume_right);
 	    if ( (ioctl(vo_mpegpes_fd2,AUDIO_SET_MIXER, &dvb_mixer) < 0)){
-	      perror("DVB AUDIO SET MIXER: ");
+		mp_msg(MSGT_AO, MSGL_ERR, "DVB audio set mixer failed: %s\n",
+		    strerror(errno));
 	      return CONTROL_ERROR;
 	    }
 	    return CONTROL_OK;
@@ -80,7 +83,7 @@
 	case 44100:	freq_id=2;break;
 	case 32000:	freq_id=3;break;
 	default:
-	    fprintf(stderr,"ao_mpegpes: %d Hz not supported, try to resample (RTFM)\n",rate);
+	    mp_msg(MSGT_AO, MSGL_ERR, "ao_mpegpes: %d Hz not supported, try to resample (RTFM)\n",rate);
 	    return 0;
     }
 
@@ -146,4 +149,3 @@
 
     return 0.0;
 }
-




More information about the MPlayer-cvslog mailing list