diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-29 14:11:40 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-29 17:56:53 +0100 |
commit | 21d93690cb3e6af5f58271af448f924b891cb5af (patch) | |
tree | dce899e7d50279132ec1926c9f947814000f2552 | |
parent | 54aea7d5de13735bad291c0f1d9ba93b17a6321e (diff) | |
download | mpv-21d93690cb3e6af5f58271af448f924b891cb5af.tar.bz2 mpv-21d93690cb3e6af5f58271af448f924b891cb5af.tar.xz |
ao: add debug log with the detected channel maps
This could be helpful with bug reports.
-rw-r--r-- | audio/out/ao.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |