mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
validity checks for pa_context_is_pending()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@679 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
09589a75a4
commit
a81209f147
2 changed files with 2 additions and 5 deletions
|
|
@ -728,9 +728,8 @@ int pa_context_is_pending(pa_context *c) {
|
|||
assert(c);
|
||||
assert(c->ref >= 1);
|
||||
|
||||
/* pa_log("pstream: %i", pa_pstream_is_pending(c->pstream)); */
|
||||
/* pa_log("pdispatch: %i", pa_pdispatch_is_pending(c->pdispatch)); */
|
||||
|
||||
PA_CHECK_VALIDITY_RETURN_ANY(c, c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE, -1);
|
||||
|
||||
return (c->pstream && pa_pstream_is_pending(c->pstream)) ||
|
||||
(c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||
|
||||
c->client;
|
||||
|
|
|
|||
|
|
@ -1235,5 +1235,3 @@ const pa_channel_map* pa_stream_get_channel_map(pa_stream *s) {
|
|||
|
||||
return &s->channel_map;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue