diff --git a/spa/plugins/support/node-driver.c b/spa/plugins/support/node-driver.c index 1ca186a49..e7b2c702b 100644 --- a/spa/plugins/support/node-driver.c +++ b/spa/plugins/support/node-driver.c @@ -479,10 +479,8 @@ static void on_timeout(struct spa_source *source) this->clock->rate_diff = corr; this->clock->next_nsec = this->next_time + nsec_offset; - if (SPA_UNLIKELY(timer_was_canceled)) { - SPA_FLAG_UPDATE(this->clock->flags, - SPA_IO_CLOCK_FLAG_DISCONT, true); - } + SPA_FLAG_UPDATE(this->clock->flags, SPA_IO_CLOCK_FLAG_DISCONT, + timer_was_canceled); } spa_node_call_ready(&this->callbacks,