From baab7aa3fd6a22bf842b5dd519136286e803fd54 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 30 Aug 2002 11:20:51 +0000 Subject: [PATCH] mp_msg'ized git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7162 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_mpegpes.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libao2/ao_mpegpes.c b/libao2/ao_mpegpes.c index 65fe43b80f..b2b50982d8 100644 --- a/libao2/ao_mpegpes.c +++ b/libao2/ao_mpegpes.c @@ -11,6 +11,8 @@ #include "afmt.h" +#include "../mp_msg.h" + #ifdef HAVE_DVB #include audioMixer_t dvb_mixer={255,255}; @@ -52,7 +54,8 @@ static int control(int cmd,int arg){ 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 @@ freq=rate; 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 @@ static float get_delay(){ return 0.0; } -