mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
pod: Improve type-safety in SPA POD code
Use direct field access when the type is known, instead of a macro that includes a cast.
This commit is contained in:
parent
aa2289a25b
commit
e4fcbef89a
4 changed files with 17 additions and 19 deletions
|
|
@ -186,9 +186,7 @@ SPA_API_DEBUG_POD int spa_debugc_pod(struct spa_debug_context *ctx, int indent,
|
|||
const struct spa_type_info *info, const struct spa_pod *pod)
|
||||
{
|
||||
return spa_debugc_pod_value(ctx, indent, info ? info : SPA_TYPE_ROOT,
|
||||
SPA_POD_TYPE(pod),
|
||||
SPA_POD_BODY(pod),
|
||||
SPA_POD_BODY_SIZE(pod));
|
||||
pod->type, SPA_POD_BODY(pod), pod->size);
|
||||
}
|
||||
|
||||
SPA_API_DEBUG_POD int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue