mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
properties: fix serialization of values
When the first parsed part of the value does not look like a container, dump the complete length of the value. If a value would contain 'Tunnel sink', it would previously only serialize the 'Tunnel' part and ignore the rest. See #3212
This commit is contained in:
parent
7b0c019a2b
commit
3a08510a81
1 changed files with 3 additions and 0 deletions
|
|
@ -788,6 +788,9 @@ int pw_properties_serialize_dict(FILE *f, const struct spa_dict *dict, uint32_t
|
|||
if ((len = spa_json_next(&sub, &value)) < 0)
|
||||
break;
|
||||
|
||||
if (!spa_json_is_container(value, len))
|
||||
len = value ? strlen(value) : 0;
|
||||
|
||||
dump(c, c->indent, &sub, value, len);
|
||||
count++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue