From d6836d89eefb9d3a03f36e63a2ef8e76d62eadd0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 30 Nov 2018 17:52:48 +0100 Subject: [PATCH] alsa: stop try writing samples when no progress --- spa/plugins/alsa/alsa-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-utils.c b/spa/plugins/alsa/alsa-utils.c index 9a8f3240b..440359388 100644 --- a/spa/plugins/alsa/alsa-utils.c +++ b/spa/plugins/alsa/alsa-utils.c @@ -744,7 +744,7 @@ again: return res; } - if (!spa_list_is_empty(&state->ready) && total_written < state->threshold) + if (!spa_list_is_empty(&state->ready) && total_written < state->threshold && written > 0) goto again; state->sample_count += total_written;