[polypaudio-commits] r680 - /trunk/src/polyp/context.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Apr 10 13:43:25 PDT 2006
Author: lennart
Date: Mon Apr 10 22:43:24 2006
New Revision: 680
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=680&root=polypaudio&view=rev
Log:
return the error code and not just -1 when pa_context_is_pending() fails
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=680&root=polypaudio&r1=679&r2=680&view=diff
==============================================================================
--- trunk/src/polyp/context.c (original)
+++ trunk/src/polyp/context.c Mon Apr 10 22:43:24 2006
@@ -728,7 +728,7 @@
assert(c);
assert(c->ref >= 1);
- PA_CHECK_VALIDITY_RETURN_ANY(c, c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE, -1);
+ PA_CHECK_VALIDITY(c, 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