Commit b46d8a8c authored by Wim Taymans's avatar Wim Taymans
Browse files

alsa: force playback start when buffer is full

When we try to play data but the ringbuffer is full, we need to start
the device or else we will stay in this situation forever and stay

Fixes #2830
parent 50a24ac6
Pipeline #740190 passed with stages
in 3 minutes and 35 seconds
......@@ -2128,7 +2128,7 @@ again:
state->sample_count += total_written;
if (SPA_UNLIKELY(!state->alsa_started && total_written > 0))
if (SPA_UNLIKELY(!state->alsa_started && (total_written > 0 || frames == 0)))
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment