mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-18 08:56:40 -05:00
add new function pa_mainloop_deferred_pending()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@221 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
29653ab83b
commit
70a30530e0
5 changed files with 70 additions and 15 deletions
|
|
@ -99,6 +99,19 @@ static int iterate(struct pa_simple *p, int block, int *perror) {
|
|||
|
||||
} while (pa_context_is_pending(p->context));
|
||||
|
||||
|
||||
while (pa_mainloop_deferred_pending(p->mainloop)) {
|
||||
|
||||
if (pa_mainloop_iterate(p->mainloop, 0, NULL) < 0) {
|
||||
if (perror)
|
||||
*perror = PA_ERROR_INTERNAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (check_error(p, perror) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue