From c6f94def08708a11580b7d3276b1d51a8a54b9a3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 14 Dec 2020 10:21:13 +0100 Subject: [PATCH] null-sink: fix null sink scheduling The null sink pulls in data and provides data after it got the data in _process. See #472 #442 --- spa/plugins/support/null-audio-sink.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spa/plugins/support/null-audio-sink.c b/spa/plugins/support/null-audio-sink.c index e1635b3f6..3d3477dd1 100644 --- a/spa/plugins/support/null-audio-sink.c +++ b/spa/plugins/support/null-audio-sink.c @@ -242,8 +242,7 @@ static void on_timeout(struct spa_source *source) this->clock->next_nsec = this->next_time; } - spa_node_call_ready(&this->callbacks, - SPA_STATUS_HAVE_DATA | SPA_STATUS_NEED_DATA); + spa_node_call_ready(&this->callbacks, SPA_STATUS_NEED_DATA); set_timer(this, this->next_time); } @@ -659,7 +658,7 @@ static int impl_node_process(void *object) io->status = -EINVAL; return io->status; } - io->status = SPA_STATUS_NEED_DATA; + io->status = SPA_STATUS_OK; return SPA_STATUS_HAVE_DATA; }