alsa: stop try writing samples when no progress

This commit is contained in:
Wim Taymans 2018-11-30 17:52:48 +01:00
parent c5f5f1d94b
commit d6836d89ee

View file

@ -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;