mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 16:10:04 +01:00
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:
parent
34122b4bf3
commit
40aa6fbb64
1 changed files with 5 additions and 0 deletions
|
|
@ -2545,6 +2545,11 @@ static int setup_convert(struct impl *this)
|
||||||
this->setup = true;
|
this->setup = true;
|
||||||
this->recalc = 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue