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.
This commit is contained in:
Barnabás Pőcze 2026-05-12 21:08:21 +02:00
parent 5802826966
commit bcdc5356f2

View file

@ -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);