From 50437029a3f299a459c38dddd017567396c53b8f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 26 Feb 2021 21:12:11 +0100 Subject: [PATCH] channelmix: improve debug, add passthrough state --- spa/plugins/audioconvert/channelmix.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spa/plugins/audioconvert/channelmix.c b/spa/plugins/audioconvert/channelmix.c index 326cb40ff..9c3cda79e 100644 --- a/spa/plugins/audioconvert/channelmix.c +++ b/spa/plugins/audioconvert/channelmix.c @@ -294,12 +294,13 @@ static int setup_convert(struct impl *this, emit_params_changed(this); - spa_log_debug(this->log, NAME " %p: got channelmix features %08x:%08x flags:%08x", - this, this->cpu_flags, this->mix.cpu_flags, - this->mix.flags); - this->is_passthrough = SPA_FLAG_IS_SET(this->mix.flags, CHANNELMIX_FLAG_IDENTITY); + spa_log_debug(this->log, NAME " %p: got channelmix features %08x:%08x flags:%08x passthrough:%d", + this, this->cpu_flags, this->mix.cpu_flags, + this->mix.flags, this->is_passthrough); + + return 0; }