mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
libpulse: as a special exception, don't require a non-NULL context in pa_context_errno
This commit is contained in:
parent
231c17be03
commit
cdbeac6b69
1 changed files with 4 additions and 1 deletions
|
|
@ -1045,7 +1045,10 @@ pa_context_state_t pa_context_get_state(pa_context *c) {
|
|||
}
|
||||
|
||||
int pa_context_errno(pa_context *c) {
|
||||
pa_assert(c);
|
||||
|
||||
if (!c)
|
||||
return PA_ERR_INVALID;
|
||||
|
||||
pa_assert(PA_REFCNT_VALUE(c) >= 1);
|
||||
|
||||
return c->error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue