mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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 silent. Fixes #2830
This commit is contained in:
parent
50a24ac69e
commit
b46d8a8c92
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
do_start(state);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue