diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-10 22:35:12 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-10 22:35:12 +0000 |
commit | 25123469d53e2ef555549984ea4e8b028c1632fb (patch) | |
tree | 4a1374c5e7ca11afff25d240b81809d23f791eb1 /polyp/polyplib-context.c | |
parent | 0c99fb31826fba0ed4f904d04dd56f1df3663a3e (diff) |
add support for module search path as command line argument
protocol-native: move first data request into ack of stream creation
improve mainloop API: return the number of dispatched sources on iterate()
fix a resampling bug
introduce network latency measurement
WARNING: all these changes together may break some applications
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@189 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-context.c')
-rw-r--r-- | polyp/polyplib-context.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/polyp/polyplib-context.c b/polyp/polyplib-context.c index caaa1dbb..a15e4257 100644 --- a/polyp/polyplib-context.c +++ b/polyp/polyplib-context.c @@ -431,11 +431,10 @@ void pa_context_set_state_callback(struct pa_context *c, void (*cb)(struct pa_co int pa_context_is_pending(struct pa_context *c) { assert(c && c->ref >= 1); - if (c->state != PA_CONTEXT_READY) - return 0; - - assert(c->pstream && c->pdispatch); - return pa_pstream_is_pending(c->pstream) || pa_pdispatch_is_pending(c->pdispatch); +/* pa_log("pstream: %i\n", pa_pstream_is_pending(c->pstream)); */ +/* pa_log("pdispatch: %i\n", pa_pdispatch_is_pending(c->pdispatch)); */ + + return (c->pstream && pa_pstream_is_pending(c->pstream)) || (c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) || c->client; } static void set_dispatch_callbacks(struct pa_operation *o); |