mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
context: update the duration/rate directly when node idle
When the node is not running, update the duration/rate directly so that followers can see the current duration/rate when they start.
This commit is contained in:
parent
6e8625cf96
commit
f309543810
1 changed files with 5 additions and 0 deletions
|
|
@ -1386,6 +1386,11 @@ again:
|
|||
n->rt.position->clock.target_duration = n->target_quantum;
|
||||
n->rt.position->clock.target_rate = n->target_rate;
|
||||
SEQ_WRITE(n->rt.position->clock.target_seq);
|
||||
|
||||
if (n->info.state < PW_NODE_STATE_RUNNING) {
|
||||
n->rt.position->clock.duration = n->target_quantum;
|
||||
n->rt.position->clock.rate = n->target_rate;
|
||||
}
|
||||
n->target_pending = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue