mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-31 21:38:19 -04:00
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:
parent
5802826966
commit
bcdc5356f2
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue