mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-11 13:30:05 -05:00
Fixed XRUN detection condition in avail() callback
This commit is contained in:
parent
15357a9875
commit
20bfec221e
1 changed files with 1 additions and 1 deletions
|
|
@ -635,7 +635,7 @@ static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (avail > pcm->buffer_size)
|
if (avail >= pcm->stop_threshold)
|
||||||
return -EPIPE;
|
return -EPIPE;
|
||||||
return avail;
|
return avail;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue