mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
daemon: make flags parse like an array
This commit is contained in:
parent
ecd1d3e1d7
commit
085fd536be
2 changed files with 9 additions and 5 deletions
|
|
@ -171,7 +171,11 @@ static int parse_modules(struct data *d, const char *str)
|
|||
args = malloc(alen + 1);
|
||||
spa_json_parse_string(aval, alen, args);
|
||||
} else if (strcmp(arg, "flags") == 0) {
|
||||
flags = strndup(aval, alen);
|
||||
if (spa_json_is_container(aval, alen))
|
||||
alen = spa_json_container_len(&it[2], aval, alen);
|
||||
|
||||
flags = malloc(alen + 1);
|
||||
spa_json_parse_string(aval, alen, flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue