[MPlayer-cvslog] CVS: main/libao2 ao_alsa.c,1.36,1.37
Clemens Ladisch CVS
syncmail at mplayerhq.hu
Mon Feb 27 11:06:29 CET 2006
CVS change done by Clemens Ladisch CVS
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv21067/libao2
Modified Files:
ao_alsa.c
Log Message:
Show the actual ALSA version instead of the version mplayer was compiled
with, if possible.
Index: ao_alsa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- ao_alsa.c 13 Feb 2006 11:48:29 -0000 1.36
+++ ao_alsa.c 27 Feb 2006 10:06:27 -0000 1.37
@@ -270,7 +270,11 @@
mp_msg(MSGT_AO,MSGL_V,"alsa-init: requested format: %d Hz, %d channels, %x\n", rate_hz,
channels, format);
alsa_handler = NULL;
+#if SND_LIB_VERSION >= 0x010005
+ mp_msg(MSGT_AO,MSGL_V,"alsa-init: using ALSA %s\n", snd_asoundlib_version());
+#else
mp_msg(MSGT_AO,MSGL_V,"alsa-init: compiled for ALSA-%s\n", SND_LIB_VERSION_STR);
+#endif
if ((err = snd_card_next(&cards)) < 0 || cards < 0)
{
More information about the MPlayer-cvslog
mailing list