Merge branch 'master' into 'master'

audioconvert: fix filter graph activation during startup and on flush

See merge request pipewire/pipewire!2623
This commit is contained in:
Torkel Niklasson 2025-12-09 19:52:17 +00:00
commit 0840d57e25

View file

@ -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;
}
@ -2588,6 +2593,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
break;
case SPA_NODE_COMMAND_Flush:
reset_node(this);
this->setup = false;
break;
default:
return -ENOTSUP;