From: Lennart Poettering Date: Wed, 12 Apr 2006 17:10:25 +0000 (+0000) Subject: proper validity checking for pa_context_is_pending() X-Git-Tag: 1.0_branch~3834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5d177d90bea33237bb8c55320c2595ba12b0550;p=profile%2Fivi%2Fpulseaudio.git proper validity checking for pa_context_is_pending() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@684 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/polyp/context.c b/src/polyp/context.c index c16b54b..7c0ed19 100644 --- a/src/polyp/context.c +++ b/src/polyp/context.c @@ -728,7 +728,11 @@ int pa_context_is_pending(pa_context *c) { assert(c); assert(c->ref >= 1); - PA_CHECK_VALIDITY(c, c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE); + PA_CHECK_VALIDITY(c, + c->state == PA_CONTEXT_CONNECTING || + c->state == PA_CONTEXT_AUTHORIZING || + c->state == PA_CONTEXT_SETTING_NAME || + c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE); return (c->pstream && pa_pstream_is_pending(c->pstream)) || (c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||