From 4c1115cf1dcb18aa22ded7fa5a82773cd09adabf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 20 Oct 2022 17:44:42 +0200 Subject: [PATCH] alsa-seq: attempt to get more data in timeout Also emit the NEED_DATA status so that the graph will pull in new midi data even when we don't output anything. Fixes #2775 --- spa/plugins/alsa/alsa-seq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/alsa/alsa-seq.c b/spa/plugins/alsa/alsa-seq.c index 381bbc5e1..8da724528 100644 --- a/spa/plugins/alsa/alsa-seq.c +++ b/spa/plugins/alsa/alsa-seq.c @@ -803,8 +803,8 @@ static void alsa_on_timeout_event(struct spa_source *source) update_time(state, state->current_time, false); res = process_read(state); - if (res > 0) - spa_node_call_ready(&state->callbacks, res); + if (res >= 0) + spa_node_call_ready(&state->callbacks, res | SPA_STATUS_NEED_DATA); set_timeout(state, state->next_time); }