mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-21 18:05:06 +01:00
Implicitly look for a new stream on resume
This commit is contained in:
parent
f35eb4efe2
commit
0b53299941
3
tx.c
3
tx.c
@ -71,6 +71,9 @@ static int send_one_frame(snd_pcm_t *snd,
|
|||||||
|
|
||||||
f = snd_pcm_readi(snd, pcm, samples);
|
f = snd_pcm_readi(snd, pcm, samples);
|
||||||
if (f < 0) {
|
if (f < 0) {
|
||||||
|
if (f == -ESTRPIPE)
|
||||||
|
ts = 0;
|
||||||
|
|
||||||
f = snd_pcm_recover(snd, f, 0);
|
f = snd_pcm_recover(snd, f, 0);
|
||||||
if (f < 0) {
|
if (f < 0) {
|
||||||
aerror("snd_pcm_readi", f);
|
aerror("snd_pcm_readi", f);
|
||||||
|
Loading…
Reference in New Issue
Block a user