summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-12-29 14:11:40 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:16 +0900
commit1a346ce11b9dfe5f3eb5928ac50973dd3d818167 (patch)
tree6f62858284c21ecc5773cef796d3bf4ab555fa58
parent891a9727c6162a633b5c133abe239ee5904cfdf2 (diff)
downloadmpv-1a346ce11b9dfe5f3eb5928ac50973dd3d818167.tar.bz2
mpv-1a346ce11b9dfe5f3eb5928ac50973dd3d818167.tar.xz
ao: add debug log with the detected channel maps
This could be helpful with bug reports.
-rw-r--r--audio/out/ao.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 0dd8fd3a15..7b47266add 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);
}