From bcdc5356f2c8f369798484bd8cfe6c28ab3d1a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 12 May 2026 21:08:21 +0200 Subject: [PATCH] pipewire: introspect: copy `SPA_DICT_FLAG_SORTED` When making a copy of the dictionary, copy the sorted flag as well since the order is preserved. --- src/pipewire/introspect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipewire/introspect.c b/src/pipewire/introspect.c index 396250b58..4364f0628 100644 --- a/src/pipewire/introspect.c +++ b/src/pipewire/introspect.c @@ -90,6 +90,7 @@ static struct spa_dict *pw_spa_dict_copy(struct spa_dict *dict) if (copy->items == NULL) goto no_items; copy->n_items = dict->n_items; + copy->flags = dict->flags & SPA_DICT_FLAG_SORTED; for (i = 0; i < dict->n_items; i++) { items[i].key = strdup(dict->items[i].key);