Mercurial > mplayer.hg
diff libao2/ao_mpegpes.c @ 13383:c1955840883d
mp_msg transition of unmaintained audio output drivers.
Patch by Reynaldo H. Verdejo Pinochet <reynaldo at opendot dot cl>
author | ivo |
---|---|
date | Sat, 18 Sep 2004 20:31:28 +0000 |
parents | 99798c3cdb93 |
children | a92101a7eb49 |
line wrap: on
line diff
--- a/libao2/ao_mpegpes.c Sat Sep 18 18:14:25 2004 +0000 +++ b/libao2/ao_mpegpes.c Sat Sep 18 20:31:28 2004 +0000 @@ -18,6 +18,7 @@ #include "afmt.h" #include "../mp_msg.h" +#include "../help_mp.h" #ifdef HAVE_DVB #ifndef HAVE_DVB_HEAD @@ -67,7 +68,7 @@ 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)){ - mp_msg(MSGT_AO, MSGL_ERR, "DVB audio set mixer failed: %s\n", + mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_MPEGPES_CantSetMixer, strerror(errno)); return CONTROL_ERROR; } @@ -112,7 +113,7 @@ case 44100: freq_id=2;break; case 32000: freq_id=3;break; default: - mp_msg(MSGT_AO, MSGL_ERR, "ao_mpegpes: %d Hz not supported, try to resample...\n",rate); + mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_MPEGPES_UnsupSamplerate, rate); #if 0 if(rate>48000) rate=96000; else if(rate>44100) rate=48000; else