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:
Wim Taymans 2020-12-31 10:12:09 +01:00
parent f29bc42b4d
commit 2fd35488c7
2 changed files with 21 additions and 42 deletions

View file

@ -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);