From 21d93690cb3e6af5f58271af448f924b891cb5af Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 29 Dec 2014 14:11:40 +0100 Subject: ao: add debug log with the detected channel maps This could be helpful with bug reports. --- audio/out/ao.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audio/out/ao.c b/audio/out/ao.c index 893699e2f5..10ed6c939f 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -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, 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); } -- cgit v1.2.3