node: update the duration/rate from the target

Before scheduling the graph from the driver, update the duration and
rate with the new targets.
This commit is contained in:
Wim Taymans 2023-03-23 18:39:27 +01:00
parent 1bdd5eee69
commit 6e8625cf96
13 changed files with 87 additions and 3 deletions

View file

@ -702,6 +702,10 @@ static void on_driver_timeout(struct spa_source *source)
return;
}
}
if (SPA_LIKELY(this->node_position_io != NULL)) {
this->node_position_io->clock.duration = this->node_position_io->clock.target_duration;
this->node_position_io->clock.rate = this->node_position_io->clock.target_rate;
}
check_position_and_clock_config(this);