From da8f835de3ea45de44d5a974a7b239fd78e08ced Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Aug 2021 17:31:01 +0200 Subject: [PATCH] context: after suspend, reevaluate the graph Reevaluate the graph again after we potentially suspend because of a rate change because links might become unprepared and need to be prepared again before the node becomes active. --- src/pipewire/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 300de650f..fee91787a 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -1250,6 +1250,8 @@ again: } n->rt.position->clock.rate = SPA_FRACTION(1, target_rate); current_rate = target_rate; + /* we might be suspended now and the links need to be prepared again */ + goto again; }