mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
*: Avoid macros that use casts where possible
Use direct field access when the type is known, instead of a macro that
includes a cast.
These were missed in e4fcbef89a.
This commit is contained in:
parent
5cf84fa3fe
commit
b3bf5be1f6
11 changed files with 19 additions and 20 deletions
|
|
@ -128,7 +128,7 @@ SPA_API_DEBUG_FORMAT int spa_debugc_format(struct spa_debug_context *ctx, int in
|
|||
if (info == NULL)
|
||||
info = spa_type_format;
|
||||
|
||||
if (format == NULL || SPA_POD_TYPE(format) != SPA_TYPE_Object)
|
||||
if (format == NULL || format->type != SPA_TYPE_Object)
|
||||
return -EINVAL;
|
||||
|
||||
if (spa_format_parse(format, &mtype, &mstype) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue