mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
properties: just use the parser in all cases
We can just use the json parser to parse the old key=val syntax as well now.
This commit is contained in:
parent
f29bc42b4d
commit
2fd35488c7
2 changed files with 21 additions and 42 deletions
|
|
@ -211,7 +211,7 @@ static void test_new_string(void)
|
|||
{
|
||||
struct pw_properties *props;
|
||||
|
||||
props = pw_properties_new_string("foo=bar bar=baz ignore him=too empty= =gg");
|
||||
props = pw_properties_new_string("foo=bar bar=baz \"#ignore\"=ignore him=too empty=\"\" =gg");
|
||||
spa_assert(props != NULL);
|
||||
spa_assert(props->flags == 0);
|
||||
spa_assert(props->dict.n_items == 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue