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
This commit is contained in:
Martin Geier 2026-05-08 08:36:55 +02:00 committed by Wim Taymans
parent 4c8093fa72
commit c7f2f0dc73

View file

@ -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);