mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
json: remove obsolete # comment handling
Comments are handled by the parser now. Keys and values starting with # are intentional now.
This commit is contained in:
parent
826f52344f
commit
77a4ae380e
5 changed files with 4 additions and 17 deletions
|
|
@ -300,12 +300,7 @@ static int parse_spa_libs(struct pw_context *context, char *str)
|
|||
}
|
||||
|
||||
while (spa_json_get_string(&it[1], key, sizeof(key)-1) > 0) {
|
||||
const char *val;
|
||||
if (key[0] == '#') {
|
||||
if (spa_json_next(&it[1], &val) <= 0)
|
||||
break;
|
||||
}
|
||||
else if (spa_json_get_string(&it[1], value, sizeof(value)-1) > 0) {
|
||||
if (spa_json_get_string(&it[1], value, sizeof(value)-1) > 0) {
|
||||
pw_context_add_spa_lib(context, key, value);
|
||||
count++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue