summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-16 20:29:52 +0100
committerwm4 <wm4@nowhere>2015-03-16 20:29:52 +0100
commit420e657a0b9f4fdd18b4d70a0fd289de9a140a60 (patch)
treec09fcf3e3f13083de0969e03e3c2b6a453e29b9d /audio/out
parent7c2f21cb507ec1f10b91b52f093360122445b606 (diff)
downloadmpv-420e657a0b9f4fdd18b4d70a0fd289de9a140a60.tar.bz2
mpv-420e657a0b9f4fdd18b4d70a0fd289de9a140a60.tar.xz
ao: slightly extend debug messages
This function already got uglified with debug printing; might as well go all the way.
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 69811123fc..8a66b1171c 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -419,7 +419,10 @@ bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s,
MP_DBG(ao, "chmap_sel #%d: %s\n", i, mp_chmap_to_str(&c));
}
}
- return mp_chmap_sel_adjust(s, map);
+ bool r = mp_chmap_sel_adjust(s, map);
+ if (r)
+ MP_DBG(ao, "result: %s\n", mp_chmap_to_str(map));
+ return r;
}
bool ao_chmap_sel_get_def(struct ao *ao, const struct mp_chmap_sel *s,