mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
pod: handle NULL
This commit is contained in:
parent
e28b5f91b8
commit
3dba9f0fd4
10 changed files with 121 additions and 111 deletions
|
|
@ -187,7 +187,7 @@ struct pod_type_name {
|
|||
const char *CCName;
|
||||
} pod_type_names[] = {
|
||||
{ "invalid", "*Invalid*" },
|
||||
{ "ignored", "ignored" },
|
||||
{ "none", "None" },
|
||||
{ "bool", "Bool" },
|
||||
{ "uri", "URI" },
|
||||
{ "int", "Int" },
|
||||
|
|
@ -310,6 +310,10 @@ print_pod_value (uint32_t size, uint32_t type, void *body, int prefix)
|
|||
printf ("%-*sBytes\n", prefix, "");
|
||||
spa_debug_dump_mem (body, size);
|
||||
break;
|
||||
case SPA_POD_TYPE_NONE:
|
||||
printf ("%-*sNone\n", prefix, "");
|
||||
spa_debug_dump_mem (body, size);
|
||||
break;
|
||||
default:
|
||||
printf ("unhandled POD type %d\n", type);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue