[polypaudio-commits] r684 - /trunk/src/polyp/context.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed Apr 12 10:10:25 PDT 2006
Author: lennart
Date: Wed Apr 12 19:10:25 2006
New Revision: 684
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=684&root=polypaudio&view=rev
Log:
proper validity checking for pa_context_is_pending()
Modified:
trunk/src/polyp/context.c
Modified: trunk/src/polyp/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/context.c?rev=684&root=polypaudio&r1=683&r2=684&view=diff
==============================================================================
--- trunk/src/polyp/context.c (original)
+++ trunk/src/polyp/context.c Wed Apr 12 19:10:25 2006
@@ -728,7 +728,11 @@
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)) ||
More information about the pulseaudio-commits
mailing list