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:
Jonas Holmberg 2026-02-12 17:15:33 +01:00
parent 7f08c0d404
commit ca4fa88598

View file

@ -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);