mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-07 03:01:36 -04:00
pipewire: properties: copy sorted flag from dictionary
This commit is contained in:
parent
b04bffa5a9
commit
ab4de7733f
1 changed files with 5 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ struct pw_properties *pw_properties_new(const char *key, ...)
|
||||||
*
|
*
|
||||||
* \param dict a dictionary. keys and values are copied
|
* \param dict a dictionary. keys and values are copied
|
||||||
* \return a new properties object
|
* \return a new properties object
|
||||||
|
*
|
||||||
|
* `SPA_DICT_FLAG_SORTED` is copied if present on \a dict.
|
||||||
*/
|
*/
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
struct pw_properties *pw_properties_new_dict(const struct spa_dict *dict)
|
struct pw_properties *pw_properties_new_dict(const struct spa_dict *dict)
|
||||||
|
|
@ -138,6 +140,9 @@ struct pw_properties *pw_properties_new_dict(const struct spa_dict *dict)
|
||||||
strdup(it->value));
|
strdup(it->value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SPA_FLAG_UPDATE(impl->this.dict.flags, SPA_DICT_FLAG_SORTED,
|
||||||
|
SPA_FLAG_IS_SET(dict->flags, SPA_DICT_FLAG_SORTED));
|
||||||
|
|
||||||
return &impl->this;
|
return &impl->this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue