Skip to content
Snippets Groups Projects
Commit a3e5f4f7 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #30143: alsa: call snd_pcm_recover after write error

parent 26d1e199
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,9 @@ AlsaLayer::write(void* buffer, int length, snd_pcm_t * handle)
int err = snd_pcm_writei(handle, buffer , frames);
if (err < 0)
snd_pcm_recover(handle, err, 0);
if (err >= 0)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment