mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
handle EAGAIN properly
This commit is contained in:
parent
2854afbb1b
commit
121a8b9190
1 changed files with 3 additions and 1 deletions
|
|
@ -138,7 +138,9 @@ static int process_render(struct userdata *u) {
|
||||||
|
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
else if (errno != EAGAIN) {
|
else if (errno == EAGAIN)
|
||||||
|
return 0;
|
||||||
|
else {
|
||||||
pa_log("Failed to write data to FIFO: %s", pa_cstrerror(errno));
|
pa_log("Failed to write data to FIFO: %s", pa_cstrerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue