summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-22 20:05:34 +0200
committerwm4 <wm4@nowhere>2016-08-22 20:05:34 +0200
commit6980575e15d7cc64d291546635ecf5b4cf81a74a (patch)
treef7196e6773144f948c32f7fd159b9a58e72749d9
parent724f60bf9a27c823254dcc94adf569c9a35f5890 (diff)
downloadmpv-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.
-rw-r--r--audio/out/ao_alsa.c4
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];