diff options
author | wm4 <wm4@nowhere> | 2016-08-22 20:05:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-22 20:05:34 +0200 |
commit | 6980575e15d7cc64d291546635ecf5b4cf81a74a (patch) | |
tree | f7196e6773144f948c32f7fd159b9a58e72749d9 /audio/out | |
parent | 724f60bf9a27c823254dcc94adf569c9a35f5890 (diff) | |
download | mpv-6980575e15d7cc64d291546635ecf5b4cf81a74a.tar.bz2 mpv-6980575e15d7cc64d291546635ecf5b4cf81a74a.tar.xz |
ao_alsa: log if retrieving supported channel maps fails
It's a sign that the driver doesn't implement the channel map API.
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_alsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
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]; |