alsa: Fix assertion on mmap_write (triggered via a52 plugin)

This commit is contained in:
Colin Guthrie 2010-06-06 21:19:34 +01:00
parent 1415a295c2
commit 3ede7e4c01

View file

@ -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 (!after_avail && (int) sframes == -EAGAIN)
break;
if ((r = try_recover(u, "snd_pcm_mmap_commit", (int) sframes)) == 0)
continue;