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:
Wim Taymans 2022-10-24 12:33:56 +02:00
parent 3d3851e5a3
commit 2c4e1b8537
2 changed files with 12 additions and 2 deletions

View file

@ -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;