]> code.delx.au - pulseaudio/blobdiff - polyp/polyplib-context.c
two latency interpolation fixes
[pulseaudio] / polyp / polyplib-context.c
index b736daa7d2b3a65ea4e49660f67db0e344935d94..cf1a8e60c73ced97eab4d7b941bee8b4cce97b69 100644 (file)
@@ -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;