ao_alsa: log if retrieving supported channel maps fails

It's a sign that the driver doesn't implement the channel map API.
This commit is contained in:
wm4
2016-08-22 20:05:34 +02:00
parent 724f60bf9a
commit 6980575e15

View File

@@ -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];