From 9c834427c66101b774c745e1952725bb9fe21310 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 8 Sep 2023 12:19:52 +0200 Subject: [PATCH] alsa: small cleanup We always try to write when we have data so we can make this code path common. --- spa/plugins/alsa/alsa-pcm-sink.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spa/plugins/alsa/alsa-pcm-sink.c b/spa/plugins/alsa/alsa-pcm-sink.c index 7134323ae..f6602d6f9 100644 --- a/spa/plugins/alsa/alsa-pcm-sink.c +++ b/spa/plugins/alsa/alsa-pcm-sink.c @@ -820,14 +820,9 @@ static int impl_node_process(void *object) spa_list_append(&this->ready, &b->link); SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_OUT); io->buffer_id = SPA_ID_INVALID; - - spa_alsa_write(this); - - io->status = SPA_STATUS_OK; } - else if (!spa_list_is_empty(&this->ready)) { + if (!spa_list_is_empty(&this->ready)) { spa_alsa_write(this); - io->status = SPA_STATUS_OK; } return SPA_STATUS_HAVE_DATA;