mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user