diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-10-27 01:09:51 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-10-27 01:09:51 +0000 |
commit | ee452b0f06c82dd870de82fb3e6bdd4e14d29f3c (patch) | |
tree | 7f2a226a5c2596a8d97938711db16e1d18f6039b /polyp/polyplib-context.c | |
parent | 148202d432cbb4a303b0008b9ff9d64bdab99a51 (diff) |
two latency interpolation fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@257 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-context.c')
-rw-r--r-- | polyp/polyplib-context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/polyplib-context.c b/polyp/polyplib-context.c index b736daa7..cf1a8e60 100644 --- a/polyp/polyplib-context.c +++ b/polyp/polyplib-context.c @@ -230,9 +230,11 @@ static void pstream_memblock_callback(struct pa_pstream *p, uint32_t channel, ui } int pa_context_handle_error(struct pa_context *c, uint32_t command, struct pa_tagstruct *t) { - assert(c && t); + assert(c); if (command == PA_COMMAND_ERROR) { + assert(t); + if (pa_tagstruct_getu32(t, &c->error) < 0) { pa_context_fail(c, PA_ERROR_PROTOCOL); return -1; |