summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-08 14:24:20 +0200
committerwm4 <wm4@nowhere>2015-05-08 14:24:20 +0200
commitad9bce2a5ca62f6a64f65fe79ae170edc0e05da4 (patch)
treea394d2f20c8d2207017a61d92cf5cc96e5ea8a24 /audio
parent7b09654c33ca81aede475235121ebc938791dc80 (diff)
downloadmpv-ad9bce2a5ca62f6a64f65fe79ae170edc0e05da4.tar.bz2
mpv-ad9bce2a5ca62f6a64f65fe79ae170edc0e05da4.tar.xz
ao_alsa: log requested numbers of channels if ALSA rejects them
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_alsa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 2a7d694d95..fd6ea32ea6 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -501,11 +501,12 @@ static int init_device(struct ao *ao, bool second_try)
}
if (num_channels != ao->channels.num) {
+ int req = ao->channels.num;
mp_chmap_from_channels_alsa(&ao->channels, num_channels);
if (!mp_chmap_is_valid(&ao->channels))
mp_chmap_from_channels(&ao->channels, 2);
- MP_ERR(ao, "Couldn't get requested number of channels, fallback to %s.\n",
- mp_chmap_to_str(&ao->channels));
+ MP_ERR(ao, "Couldn't get requested number of channels (%d), fallback "
+ "to %s.\n", req, mp_chmap_to_str(&ao->channels));
}
// Some ALSA drivers have broken delay reporting, so disable the ALSA