mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw-dump: sort dictionaries
Dictionaries are by default printed in their insertion order. This is unergonimic when comparing properties created by different clients, as they may insert them in different orders.
This commit is contained in:
parent
ed9d3e7320
commit
d4db7e1d9b
1 changed files with 1 additions and 0 deletions
|
|
@ -322,6 +322,7 @@ static void put_value(struct data *d, const char *key, const char *val)
|
|||
static void put_dict(struct data *d, const char *key, struct spa_dict *dict)
|
||||
{
|
||||
const struct spa_dict_item *it;
|
||||
spa_dict_qsort(dict);
|
||||
put_begin(d, key, "{", 0);
|
||||
spa_dict_for_each(it, dict)
|
||||
put_value(d, it->key, it->value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue