From c7f2f0dc73ae76c637e70a4567a63cb416d790dc 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 bb80252be..b6086a1d2 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1062,8 +1062,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);