diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-09-22 11:30:30 +0800 |
---|---|---|
committer | Daniel Mack <daniel@caiaq.de> | 2009-09-22 11:30:30 +0800 |
commit | 94aa9097f4ded68623160d754a4bf2632b8efc79 (patch) | |
tree | 94a5e1192a18f760dc00ff5b36e1f7ba36fd449b /src/pulse/context.c | |
parent | c1e59f7d762fb147bc5250ebddb9cf5639aba522 (diff) | |
parent | c194db71b0ff853b4f46df26e135edf63b215451 (diff) |
Merge branch 'master' of git://0pointer.de/pulseaudio
Diffstat (limited to 'src/pulse/context.c')
-rw-r--r-- | src/pulse/context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index 894ab2e0..23ae30ce 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -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; |