summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-25 13:11:06 +0200
committerwm4 <wm4@nowhere>2015-06-25 13:15:32 +0200
commit5d71188c9939a0a881b82982efb5203d6704fd0b (patch)
tree3f5f4605b7508027dd1abd845f6db096df7df7da /audio
parent0906f758d3c6f26098287b4c089af70560d973e7 (diff)
downloadmpv-5d71188c9939a0a881b82982efb5203d6704fd0b.tar.bz2
mpv-5d71188c9939a0a881b82982efb5203d6704fd0b.tar.xz
ao: standardize channel layout name in debug output further
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 40ca53d874..4b9b2f9bec 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -416,6 +416,7 @@ bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s,
struct mp_chmap c = s->chmaps[i];
struct mp_chmap cr = c;
mp_chmap_reorder_norm(&cr);
+ mp_chmap_remove_na(&cr);
MP_DBG(ao, "chmap_sel #%d: %s (%s)\n", i, mp_chmap_to_str(&c),
mp_chmap_to_str(&cr));
}
@@ -424,6 +425,7 @@ bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s,
if (r) {
struct mp_chmap mapr = *map;
mp_chmap_reorder_norm(&mapr);
+ mp_chmap_remove_na(&mapr);
MP_DBG(ao, "result: %s (%s)\n", mp_chmap_to_str(map),
mp_chmap_to_str(&mapr));
}