mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
return the error code and not just -1 when pa_context_is_pending() fails
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@680 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
a81209f147
commit
b2668ca063
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ int pa_context_is_pending(pa_context *c) {
|
||||||
assert(c);
|
assert(c);
|
||||||
assert(c->ref >= 1);
|
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)) ||
|
return (c->pstream && pa_pstream_is_pending(c->pstream)) ||
|
||||||
(c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||
|
(c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue