From eb934dacef5883877e6ca77879c75761655c1cd8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Oct 2018 15:27:00 +0200 Subject: [PATCH] properties: better default size --- src/pipewire/properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/properties.c b/src/pipewire/properties.c index 6c95a6b50..e0edce534 100644 --- a/src/pipewire/properties.c +++ b/src/pipewire/properties.c @@ -118,7 +118,7 @@ struct pw_properties *pw_properties_new_dict(const struct spa_dict *dict) uint32_t i; struct properties *impl; - impl = properties_new(16); + impl = properties_new(SPA_ROUND_UP_N(dict->n_items, 16)); if (impl == NULL) return NULL;