mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
node: check if active when ready event is emited
Add a check that the node is actually started when we get the ready callback.
This commit is contained in:
parent
3d3851e5a3
commit
2c4e1b8537
2 changed files with 12 additions and 2 deletions
|
|
@ -1155,6 +1155,11 @@ static int follower_ready(void *data, int status)
|
|||
|
||||
spa_log_trace_fp(this->log, "%p: ready %d", this, status);
|
||||
|
||||
if (!this->started) {
|
||||
spa_log_warn(this->log, "%p: ready stopped node", this);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
if (this->target != this->follower) {
|
||||
this->driver = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue