From 6980575e15d7cc64d291546635ecf5b4cf81a74a Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 22 Aug 2016 20:05:34 +0200 Subject: ao_alsa: log if retrieving supported channel maps fails It's a sign that the driver doesn't implement the channel map API. --- audio/out/ao_alsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio/out/ao_alsa.c') diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index bbe15b4b61..c6248d302b 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -337,8 +337,10 @@ static bool query_chmaps(struct ao *ao, struct mp_chmap *chmap) struct mp_chmap_sel chmap_sel = {.tmp = p}; snd_pcm_chmap_query_t **maps = snd_pcm_query_chmaps(p->alsa); - if (!maps) + if (!maps) { + MP_VERBOSE(ao, "snd_pcm_query_chmaps() returned NULL\n"); return false; + } for (int i = 0; maps[i] != NULL; i++) { char aname[128]; -- cgit v1.2.3