From 70a30530e03ed4c43639575a479d77e38fea56ea Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 19 Sep 2004 00:03:12 +0000 Subject: add new function pa_mainloop_deferred_pending() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@221 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/polyplib-simple.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'polyp/polyplib-simple.c') 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; } -- cgit