mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
pod: handle unknown types without crashing
This commit is contained in:
parent
b905b70a76
commit
b87397025e
1 changed files with 2 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ spa_debug_pod_value(int indent, const struct spa_type_info *info,
|
|||
spa_debug("%*s" "Prop: key %s, context %d", indent+2, "",
|
||||
ii ? ii->name : "unknown", p->context);
|
||||
|
||||
spa_debug_pod_value(indent + 4, ii->values,
|
||||
spa_debug_pod_value(indent + 4, ii ? ii->values : NULL,
|
||||
p->value.type,
|
||||
SPA_POD_CONTENTS(struct spa_pod_prop, p),
|
||||
p->value.size);
|
||||
|
|
@ -231,7 +231,7 @@ spa_debug_pod_value(int indent, const struct spa_type_info *info,
|
|||
spa_debug("%*s" "Control: offset %d, type %s", indent+2, "",
|
||||
c->offset, ii ? ii->name : "unknown");
|
||||
|
||||
spa_debug_pod_value(indent + 4, ii->values,
|
||||
spa_debug_pod_value(indent + 4, ii ? ii->values : NULL,
|
||||
c->value.type,
|
||||
SPA_POD_CONTENTS(struct spa_pod_control, c),
|
||||
c->value.size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue