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.
This commit is contained in:
Torkel Niklasson 2025-12-09 15:18:19 +01:00 committed by Arun Raghavan
parent 43ddc2967b
commit 2bf5cd9b56

View file

@ -2388,6 +2388,10 @@ static int setup_convert(struct impl *this)
this->recalc = true;
emit_node_info(this, false);
if (this->data_loop)
spa_loop_invoke(this->data_loop, do_sync_filter_graph, 0, NULL, 0, true, this);
else
do_sync_filter_graph(NULL, false, 0, NULL, 0, this);
return 0;
}