loop: add block flag to invoke

Remove async shutdown and block instead.
This commit is contained in:
Wim Taymans 2017-06-26 10:41:19 +02:00
parent e776425846
commit bc56c59597
14 changed files with 165 additions and 203 deletions

View file

@ -261,6 +261,7 @@ static int do_pause(struct spa_loop *loop,
seq,
sizeof(res),
&res,
false,
this);
}
return res;
@ -300,6 +301,7 @@ static int do_start(struct spa_loop *loop,
seq,
sizeof(res),
&res,
false,
this);
}
return SPA_RESULT_OK;
@ -332,6 +334,7 @@ static int impl_node_send_command(struct spa_node *node, struct spa_command *com
++this->seq,
SPA_POD_SIZE(command),
command,
false,
this);
} else if (SPA_COMMAND_TYPE(command) == this->type.command_node.Pause) {
struct port *state = &this->out_ports[0];
@ -347,6 +350,7 @@ static int impl_node_send_command(struct spa_node *node, struct spa_command *com
++this->seq,
SPA_POD_SIZE(command),
command,
false,
this);
} else if (SPA_COMMAND_TYPE(command) == this->type.command_node.ClockUpdate) {
return SPA_RESULT_OK;