summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-09 17:26:48 +0200
committerwm4 <wm4@nowhere>2015-06-09 18:21:56 +0200
commit8653ed2183466a841d789a529e371a1f61427a8e (patch)
tree587be7e8a2f4ee8dcb70cbe075bdedc52e7b589a /audio
parentf72028ddadc25233a641d38bf295c1abf5a4cc60 (diff)
downloadmpv-8653ed2183466a841d789a529e371a1f61427a8e.tar.bz2
mpv-8653ed2183466a841d789a529e371a1f61427a8e.tar.xz
ao_alsa: refine channel count mismatch error message
I suspect we need to hand this more gracefully in some cases.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_alsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index af31cf7cc7..dbec9d7b70 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -521,8 +521,8 @@ static int init_device(struct ao *ao, bool second_try)
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 (%d), fallback "
- "to %s.\n", req, mp_chmap_to_str(&ao->channels));
+ MP_ERR(ao, "Asked for %d channels, got %d - fallback to %s.\n", req,
+ num_channels, mp_chmap_to_str(&ao->channels));
}
// Some ALSA drivers have broken delay reporting, so disable the ALSA