projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1415a29
)
alsa: Fix assertion on mmap_write (triggered via a52 plugin)
author
Colin Guthrie
<cguthrie@mandriva.org>
Sun, 6 Jun 2010 20:19:34 +0000
(21:19 +0100)
committer
Colin Guthrie
<cguthrie@mandriva.org>
Tue, 13 Jul 2010 21:08:23 +0000
(22:08 +0100)
src/modules/alsa/alsa-sink.c
patch
|
blob
|
history
diff --git
a/src/modules/alsa/alsa-sink.c
b/src/modules/alsa/alsa-sink.c
index
35a806c
..
2995c3c
100644
(file)
--- a/
src/modules/alsa/alsa-sink.c
+++ b/
src/modules/alsa/alsa-sink.c
@@
-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;