mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
cleaup up the result codes
This commit is contained in:
parent
caaeaff223
commit
dda28b1589
10 changed files with 63 additions and 68 deletions
|
|
@ -582,7 +582,7 @@ static int impl_node_process_input(struct spa_node *node)
|
|||
|
||||
this = SPA_CONTAINER_OF(node, struct state, node);
|
||||
input = this->io;
|
||||
spa_return_val_if_fail(input != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(input != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (input->status == SPA_RESULT_HAVE_BUFFER && input->buffer_id < this->n_buffers) {
|
||||
struct buffer *b = &this->buffers[input->buffer_id];
|
||||
|
|
|
|||
|
|
@ -625,7 +625,7 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
|
||||
this = SPA_CONTAINER_OF(node, struct state, node);
|
||||
io = this->io;
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (io->status == SPA_RESULT_HAVE_BUFFER)
|
||||
return SPA_RESULT_HAVE_BUFFER;
|
||||
|
|
|
|||
|
|
@ -895,7 +895,7 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
|
||||
this = SPA_CONTAINER_OF(node, struct impl, node);
|
||||
io = this->io;
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (io->status == SPA_RESULT_HAVE_BUFFER)
|
||||
return SPA_RESULT_HAVE_BUFFER;
|
||||
|
|
|
|||
|
|
@ -702,7 +702,7 @@ static int impl_node_process_input(struct spa_node *node)
|
|||
|
||||
this = SPA_CONTAINER_OF(node, struct impl, node);
|
||||
input = this->io;
|
||||
spa_return_val_if_fail(input != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(input != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (input->status == SPA_RESULT_HAVE_BUFFER && input->buffer_id < this->n_buffers) {
|
||||
struct buffer *b = &this->buffers[input->buffer_id];
|
||||
|
|
|
|||
|
|
@ -751,7 +751,7 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
|
||||
this = SPA_CONTAINER_OF(node, struct impl, node);
|
||||
io = this->io;
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (io->status == SPA_RESULT_HAVE_BUFFER)
|
||||
return SPA_RESULT_HAVE_BUFFER;
|
||||
|
|
|
|||
|
|
@ -838,7 +838,7 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
|
||||
port = &this->out_ports[0];
|
||||
io = port->io;
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (io->status == SPA_RESULT_HAVE_BUFFER)
|
||||
return SPA_RESULT_HAVE_BUFFER;
|
||||
|
|
|
|||
|
|
@ -821,7 +821,7 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
|
||||
this = SPA_CONTAINER_OF(node, struct impl, node);
|
||||
io = this->io;
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_WRONG_STATE);
|
||||
spa_return_val_if_fail(io != NULL, SPA_RESULT_UNEXPECTED);
|
||||
|
||||
if (io->status == SPA_RESULT_HAVE_BUFFER)
|
||||
return SPA_RESULT_HAVE_BUFFER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue