diff options
author | cladisch <cladisch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-27 10:06:27 +0000 |
---|---|---|
committer | cladisch <cladisch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-27 10:06:27 +0000 |
commit | 434f6b2347a92bc61108ca7355afe7f22f6a1854 (patch) | |
tree | ae8c283a1ed0da93fdb52c5c4808b11798df4c42 /libao2 | |
parent | 455e9d93fa39ccfad974f3faf9c8ab230d6ae5f7 (diff) | |
download | mpv-434f6b2347a92bc61108ca7355afe7f22f6a1854.tar.bz2 mpv-434f6b2347a92bc61108ca7355afe7f22f6a1854.tar.xz |
Show the actual ALSA version instead of the version mplayer was compiled
with, if possible.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17691 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/ao_alsa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c index 0d83e2c06d..7a7a65e7d3 100644 --- a/libao2/ao_alsa.c +++ b/libao2/ao_alsa.c @@ -270,7 +270,11 @@ static int init(int rate_hz, int channels, int format, int flags) 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) { |