diff options
Diffstat (limited to 'polyp/polyplib-introspect.c')
-rw-r--r-- | polyp/polyplib-introspect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/polyp/polyplib-introspect.c b/polyp/polyplib-introspect.c index 9a7ec157..0efc599d 100644 --- a/polyp/polyplib-introspect.c +++ b/polyp/polyplib-introspect.c @@ -42,8 +42,10 @@ static void context_stat_callback(struct pa_pdispatch *pd, uint32_t command, uin goto finish; p = NULL; - } else if (pa_tagstruct_getu32(t, &i.memblock_count) < 0 || - pa_tagstruct_getu32(t, &i.memblock_total) < 0 || + } else if (pa_tagstruct_getu32(t, &i.memblock_total) < 0 || + pa_tagstruct_getu32(t, &i.memblock_total_size) < 0 || + pa_tagstruct_getu32(t, &i.memblock_allocated) < 0 || + pa_tagstruct_getu32(t, &i.memblock_allocated_size) < 0 || !pa_tagstruct_eof(t)) { pa_context_fail(o->context, PA_ERROR_PROTOCOL); goto finish; |