From 8825a21e86e9269d0cd09c792663b6c84070f20a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 15 Sep 2020 13:10:58 +0200 Subject: [PATCH] fmtconvert: improve channel debug names --- spa/plugins/audioconvert/fmtconvert.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spa/plugins/audioconvert/fmtconvert.c b/spa/plugins/audioconvert/fmtconvert.c index e81c2f653..6ff99205c 100644 --- a/spa/plugins/audioconvert/fmtconvert.c +++ b/spa/plugins/audioconvert/fmtconvert.c @@ -178,9 +178,12 @@ static int setup_convert(struct impl *this) outformat.info.raw.position[j]) continue; this->remap[i] = j; - spa_log_debug(this->log, NAME " %p: channel %d -> %d (%d -> %d)", this, - i, j, informat.info.raw.position[i], - outformat.info.raw.position[j]); + spa_log_debug(this->log, NAME " %p: channel %d -> %d (%s -> %s)", this, + i, j, + spa_debug_type_find_short_name(spa_type_audio_channel, + informat.info.raw.position[i]), + spa_debug_type_find_short_name(spa_type_audio_channel, + outformat.info.raw.position[i])); outformat.info.raw.position[j] = -1; break; }