mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
alsa: Fix assertion on mmap_write (triggered via a52 plugin)
This commit is contained in:
parent
1415a295c2
commit
3ede7e4c01
1 changed files with 3 additions and 0 deletions
|
|
@ -610,6 +610,9 @@ static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polle
|
||||||
|
|
||||||
if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) {
|
if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) {
|
||||||
|
|
||||||
|
if (!after_avail && (int) sframes == -EAGAIN)
|
||||||
|
break;
|
||||||
|
|
||||||
if ((r = try_recover(u, "snd_pcm_mmap_commit", (int) sframes)) == 0)
|
if ((r = try_recover(u, "snd_pcm_mmap_commit", (int) sframes)) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue