mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -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
|
|
@ -1286,7 +1286,7 @@ static int diff_prop(struct impl *impl, struct spa_pod_prop *prop,
|
|||
void *vals, *v, *best = NULL;
|
||||
int res = INT_MAX;
|
||||
|
||||
if (SPA_POD_TYPE(val) != type)
|
||||
if (val->type != type)
|
||||
return -EINVAL;
|
||||
|
||||
size = SPA_POD_BODY_SIZE(val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue