mirror of
https://github.com/mpv-player/mpv
synced 2025-01-07 15:40:43 +00:00
ao: add debug log with the detected channel maps
This could be helpful with bug reports.
This commit is contained in:
parent
891a9727c6
commit
1a346ce11b
@ -415,6 +415,12 @@ void ao_request_reload(struct ao *ao)
|
|||||||
bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s,
|
bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s,
|
||||||
struct mp_chmap *map)
|
struct mp_chmap *map)
|
||||||
{
|
{
|
||||||
|
if (mp_msg_test(ao->log, MSGL_DEBUG)) {
|
||||||
|
for (int i = 0; i < s->num_chmaps; i++) {
|
||||||
|
struct mp_chmap c = s->chmaps[i];
|
||||||
|
MP_DBG(ao, "chmap_sel #%d: %s\n", i, mp_chmap_to_str(&c));
|
||||||
|
}
|
||||||
|
}
|
||||||
return mp_chmap_sel_adjust(s, map);
|
return mp_chmap_sel_adjust(s, map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user