From 5d71188c9939a0a881b82982efb5203d6704fd0b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 25 Jun 2015 13:11:06 +0200 Subject: ao: standardize channel layout name in debug output further --- audio/out/ao.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio') 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)); } -- cgit v1.2.3