summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-introspect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 22:46:27 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 22:46:27 +0000
commitc73a298f8887e5c96bc53dc1b2aad2fdbb674f64 (patch)
treec2308ac47873e778f86e32ed01dd69fff90b8825 /polyp/polyplib-introspect.c
parent5f52999c016495be1c34effdacd230a79cb52d0b (diff)
add total sample cache size to statistics
add size to sample cache entry info git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@175 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-introspect.c')
-rw-r--r--polyp/polyplib-introspect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/polyplib-introspect.c b/polyp/polyplib-introspect.c
index e650fb9f..a4ecf5ee 100644
--- a/polyp/polyplib-introspect.c
+++ b/polyp/polyplib-introspect.c
@@ -46,6 +46,7 @@ static void context_stat_callback(struct pa_pdispatch *pd, uint32_t command, uin
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_getu32(t, &i.scache_size) < 0 ||
!pa_tagstruct_eof(t)) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
@@ -603,7 +604,8 @@ static void context_get_sample_info_callback(struct pa_pdispatch *pd, uint32_t c
pa_tagstruct_gets(t, &i.name) < 0 ||
pa_tagstruct_getu32(t, &i.volume) < 0 ||
pa_tagstruct_getu32(t, &i.duration) < 0 ||
- pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0) {
+ pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
+ pa_tagstruct_getu32(t, &i.bytes) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}