From 6affbf9cf22ede1458083b308f0a82a8f1febc07 Mon Sep 17 00:00:00 2001 From: Martin Geier Date: Fri, 8 May 2026 08:36:55 +0200 Subject: [PATCH] audioconvert: update rate also for nodes with disabled resampler When the graph rate changes it is possible that the follower node can renegotiate to the new suggested audioconvert rate without requiring resampling and so the extra check for the disabled resampler is not required. Fixes #4933 --- spa/plugins/audioconvert/audioconvert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 723614779..449a1750f 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1019,8 +1019,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size) this->io_position = data; if (this->io_position && this->io_clock && - this->io_position->clock.target_rate.denom != this->io_clock->target_rate.denom && - !this->props.resample_disabled) { + this->io_position->clock.target_rate.denom != this->io_clock->target_rate.denom) { spa_log_debug(this->log, "driver %d changed rate:%u -> %u", this->io_position->clock.id, this->io_clock->target_rate.denom, this->io_position->clock.target_rate.denom);