mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa: clean up some port io checks
We should not generate a warning.
This commit is contained in:
parent
2fa1b4384b
commit
9123710971
7 changed files with 42 additions and 43 deletions
|
|
@ -679,8 +679,8 @@ static int impl_node_process(void *object)
|
|||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
|
||||
out_port = GET_OUT_PORT(this, 0);
|
||||
output = out_port->io;
|
||||
spa_return_val_if_fail(output != NULL, -EIO);
|
||||
if ((output = out_port->io) == NULL)
|
||||
return -EIO;
|
||||
|
||||
if (output->status == SPA_STATUS_HAVE_DATA)
|
||||
return SPA_STATUS_HAVE_DATA;
|
||||
|
|
@ -692,8 +692,8 @@ static int impl_node_process(void *object)
|
|||
}
|
||||
|
||||
in_port = GET_IN_PORT(this, 0);
|
||||
input = in_port->io;
|
||||
spa_return_val_if_fail(input != NULL, -EIO);
|
||||
if ((input = in_port->io) == NULL)
|
||||
return -EIO;
|
||||
|
||||
if (input->status != SPA_STATUS_HAVE_DATA)
|
||||
return SPA_STATUS_NEED_DATA;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue