summaryrefslogtreecommitdiffstats
path: root/polyp/cli-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/cli-text.c')
-rw-r--r--polyp/cli-text.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/polyp/cli-text.c b/polyp/cli-text.c
index 000d6d34..fa1ccdf9 100644
--- a/polyp/cli-text.c
+++ b/polyp/cli-text.c
@@ -212,13 +212,13 @@ char *pa_scache_list_to_string(struct pa_core *c) {
s = pa_strbuf_new();
assert(s);
- pa_strbuf_printf(s, "%u cache entries available.\n", c->scache_hashmap ? pa_hashmap_ncontents(c->scache_hashmap) : 0);
+ pa_strbuf_printf(s, "%u cache entries available.\n", c->scache ? pa_idxset_ncontents(c->scache) : 0);
- if (c->scache_hashmap) {
+ if (c->scache) {
struct pa_scache_entry *e;
- void *state = NULL;
+ uint32_t index = PA_IDXSET_INVALID;
- while ((e = pa_hashmap_iterate(c->scache_hashmap, &state))) {
+ for (e = pa_idxset_first(c->scache, &index); e; e = pa_idxset_next(c->scache, &index)) {
double l;
char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
pa_sample_spec_snprint(ss, sizeof(ss), &e->sample_spec);