mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-25 11:40:04 +01:00
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:
commit
0840d57e25
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue