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:
Demi Marie Obenour 2025-06-07 15:21:37 -04:00 committed by Wim Taymans
parent aa2289a25b
commit e4fcbef89a
4 changed files with 17 additions and 19 deletions

View file

@ -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