mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
format: handle NULL type info
This commit is contained in:
parent
d2c51ed2fc
commit
1b2f64917e
1 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ static inline int spa_debug_format(int indent,
|
|||
rindex(spa_types[type].name, ':') + 1);
|
||||
|
||||
if (choice == SPA_CHOICE_None) {
|
||||
spa_debug_format_value(ti->values, type, vals, size);
|
||||
spa_debug_format_value(ti ? ti->values : NULL, type, vals, size);
|
||||
} else {
|
||||
const char *ssep, *esep, *sep;
|
||||
|
||||
|
|
@ -189,7 +189,7 @@ static inline int spa_debug_format(int indent,
|
|||
vals = SPA_MEMBER(vals, size, void);
|
||||
if (i > 1)
|
||||
fprintf(stderr, "%s", sep);
|
||||
spa_debug_format_value(ti->values, type, vals, size);
|
||||
spa_debug_format_value(ti ? ti->values : NULL, type, vals, size);
|
||||
}
|
||||
fprintf(stderr, "%s", esep);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue