spa: don't warn for NULL io

The io is set to NULL when the port becomes unnegotiated.
This commit is contained in:
Wim Taymans 2022-09-01 15:31:14 +02:00
parent f48f158566
commit 2fa1b4384b
15 changed files with 30 additions and 33 deletions

View file

@ -705,9 +705,8 @@ static int impl_node_process(void *object)
spa_return_val_if_fail(this != NULL, -EINVAL);
port = GET_PORT(this, SPA_DIRECTION_OUTPUT, 0);
io = port->io;
spa_return_val_if_fail(io != NULL, -EIO);
if ((io = port->io) == NULL)
return -EIO;
spa_log_trace_fp(this->log, "%p: process %d %d/%d %d", this, io->status,
io->buffer_id, port->n_buffers, this->following);