mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-16 22:05:31 -05:00
context: set time in position for drivers
Set time in position for drivers to make sure an old time isn't copied by followers before the driver is started.
This commit is contained in:
parent
7f08c0d404
commit
ca4fa88598
1 changed files with 3 additions and 0 deletions
|
|
@ -1800,6 +1800,9 @@ again:
|
|||
n->target_rate = n->rt.position->clock.target_rate;
|
||||
}
|
||||
|
||||
if (n->info.state < PW_NODE_STATE_RUNNING)
|
||||
n->rt.position->clock.nsec = get_time_ns(n->rt.target.system);
|
||||
|
||||
SPA_FLAG_UPDATE(n->rt.position->clock.flags,
|
||||
SPA_IO_CLOCK_FLAG_LAZY, have_request && n->supports_lazy > 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue