From ca4fa88598fadcf723abd3c989ee93e43ac7d722 Mon Sep 17 00:00:00 2001 From: Jonas Holmberg Date: Thu, 12 Feb 2026 17:15:33 +0100 Subject: [PATCH] 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. --- src/pipewire/context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index ddcdd2cba..1c30be70a 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -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);