mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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:
parent
1bdd5eee69
commit
6e8625cf96
13 changed files with 87 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue