From 0b5329994166dd61f36d3928c14de7b860d1a40d Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Sat, 5 Apr 2014 10:37:21 +0100 Subject: [PATCH] Implicitly look for a new stream on resume --- tx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tx.c b/tx.c index 42bb3bb..8bd6e85 100644 --- a/tx.c +++ b/tx.c @@ -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);