client-node: make it possible to skip signal

Add an option to not signal the remote implementation when we still
have enough data.
This commit is contained in:
Wim Taymans 2018-04-26 09:49:29 +02:00
parent f784da5505
commit a6cb6b740c
3 changed files with 13 additions and 0 deletions

View file

@ -688,6 +688,11 @@ static int impl_node_process(struct spa_node *node)
}
spa_log_trace(this->log, "%p: process %d", this, status);
if (status & SPA_STATUS_NEED_BUFFER)
impl->client_node->status = SPA_ID_INVALID;
else
impl->client_node->status = SPA_STATUS_HAVE_BUFFER;
return status;
}