[MPlayer-cvslog] CVS: main/libao2 ao_alsa.c,1.18,1.19
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Thu Aug 25 21:57:34 CEST 2005
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv22656
Modified Files:
ao_alsa.c
Log Message:
set the nearest number of channels, return(0) upon errors
Index: ao_alsa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ao_alsa.c 27 Feb 2005 23:06:32 -0000 1.18
+++ ao_alsa.c 25 Aug 2005 19:57:32 -0000 1.19
@@ -548,13 +548,15 @@
{
mp_msg(MSGT_AO,MSGL_ERR,"alsa-init: unable to set format: %s\n",
snd_strerror(err));
+ return(0);
}
- if ((err = snd_pcm_hw_params_set_channels(alsa_handler, alsa_hwparams,
- ao_data.channels)) < 0)
+ if ((err = snd_pcm_hw_params_set_channels_near(alsa_handler, alsa_hwparams,
+ &ao_data.channels)) < 0)
{
mp_msg(MSGT_AO,MSGL_ERR,"alsa-init: unable to set channels: %s\n",
snd_strerror(err));
+ return(0);
}
if ((err = snd_pcm_hw_params_set_rate_near(alsa_handler, alsa_hwparams,
More information about the MPlayer-cvslog
mailing list