mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pod: descend in array type if possible
This commit is contained in:
parent
7c5cb5a281
commit
3ac2bc0ad2
2 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ spa_debug_pod_value(int indent, const struct spa_type_info *info,
|
||||||
spa_debug("%*s" "Array: child.size %d, child.type %s", indent, "",
|
spa_debug("%*s" "Array: child.size %d, child.type %s", indent, "",
|
||||||
b->child.size, ti ? ti->name : "unknown");
|
b->child.size, ti ? ti->name : "unknown");
|
||||||
|
|
||||||
|
info = info && info->values ? info->values : info;
|
||||||
SPA_POD_ARRAY_BODY_FOREACH(b, size, p)
|
SPA_POD_ARRAY_BODY_FOREACH(b, size, p)
|
||||||
spa_debug_pod_value(indent + 2, info, b->child.type, p, b->child.size);
|
spa_debug_pod_value(indent + 2, info, b->child.type, p, b->child.size);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -338,6 +338,7 @@ static void put_pod_value(struct data *d, const struct spa_type_info *info,
|
||||||
{
|
{
|
||||||
struct spa_pod_array_body *b = (struct spa_pod_array_body *)body;
|
struct spa_pod_array_body *b = (struct spa_pod_array_body *)body;
|
||||||
void *p;
|
void *p;
|
||||||
|
info = info && info->values ? info->values: info;
|
||||||
put_begin(d, "[", FLAG_SIMPLE);
|
put_begin(d, "[", FLAG_SIMPLE);
|
||||||
SPA_POD_ARRAY_BODY_FOREACH(b, size, p)
|
SPA_POD_ARRAY_BODY_FOREACH(b, size, p)
|
||||||
put_pod_value(d, info, b->child.type, p, b->child.size);
|
put_pod_value(d, info, b->child.type, p, b->child.size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue