From 40aa6fbb6401c314b2c9ead3a310cd569fb83e38 Mon Sep 17 00:00:00 2001 From: Torkel Niklasson Date: Tue, 9 Dec 2025 15:18:19 +0100 Subject: [PATCH] audioconvert: Sync filter graphs in setup_convert If the the audioconvert.filter-chain.N property is set early, they will be added to the active_graphs list but with setup = false. When the node starts, setup_convert is called, but the graphs aren't added to filter_graphs. Run the do_sync_filter_graph at the end of setup_convert to add them. --- spa/plugins/audioconvert/audioconvert.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 2f696d3cf..0e5a958d8 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -2545,6 +2545,11 @@ static int setup_convert(struct impl *this) this->setup = true; this->recalc = true; + if (this->data_loop) + spa_loop_locked(this->data_loop, do_sync_filter_graph, 0, NULL, 0, this); + else + do_sync_filter_graph(NULL, false, 0, NULL, 0, this); + return 0; }