diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-19 00:03:12 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-19 00:03:12 +0000 |
commit | 70a30530e03ed4c43639575a479d77e38fea56ea (patch) | |
tree | 2288e7e06dfd370345a143e0b6067ed24ef05f8f /polyp/polyplib-simple.c | |
parent | 29653ab83b999f545207a007f35e8a52b34bd576 (diff) |
add new function pa_mainloop_deferred_pending()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@221 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-simple.c')
-rw-r--r-- | polyp/polyplib-simple.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/polyp/polyplib-simple.c b/polyp/polyplib-simple.c index 5cf52d06..aa6c88f5 100644 --- a/polyp/polyplib-simple.c +++ b/polyp/polyplib-simple.c @@ -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; } |