Implicitly look for a new stream on resume

master
Mark Hills 2014-04-05 10:37:21 +01:00
parent f35eb4efe2
commit 0b53299941
1 changed files with 3 additions and 0 deletions

3
tx.c
View File

@ -71,6 +71,9 @@ static int send_one_frame(snd_pcm_t *snd,
f = snd_pcm_readi(snd, pcm, samples);
if (f < 0) {
if (f == -ESTRPIPE)
ts = 0;
f = snd_pcm_recover(snd, f, 0);
if (f < 0) {
aerror("snd_pcm_readi", f);