support: return completion from process

HAVE_DATA|NEED_DATA signals that the graph can continue processing.
OK means that the node will continue asynchronously later. This
is needed to make the dummy driver work as a follower.
This commit is contained in:
Wim Taymans 2021-09-23 16:36:32 +02:00
parent 21616a25ad
commit f1f5cbc0a6

View file

@ -314,7 +314,7 @@ static int impl_node_process(void *object)
this->next_time = SPA_TIMESPEC_TO_NSEC(&now);
set_timeout(this, this->next_time);
}
return SPA_STATUS_OK;
return SPA_STATUS_HAVE_DATA | SPA_STATUS_NEED_DATA;
}
static const struct spa_node_methods impl_node = {