spa: make an extra level for arrays

Make a level with type info for the array elements.
This commit is contained in:
Wim Taymans 2020-12-01 13:30:14 +01:00
parent 73e0bb255a
commit 1e9b152bb5
2 changed files with 13 additions and 3 deletions

View file

@ -1575,7 +1575,7 @@ static int json_to_pod(struct spa_pod_builder *b, uint32_t id,
spa_pod_builder_push_array(b, &f[0]);
spa_json_enter(iter, &it[0]);
while ((l = spa_json_next(&it[0], &v)) > 0)
json_to_pod(b, id, info, &it[0], v, l);
json_to_pod(b, id, info->values, &it[0], v, l);
spa_pod_builder_pop(b, &f[0]);
}
else if (spa_json_is_float(value, len)) {