mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05: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
|
|
@ -511,10 +511,8 @@ static void put_pod(struct data *d, const char *key, const struct spa_pod *pod)
|
|||
if (pod == NULL) {
|
||||
put_value(d, key, NULL);
|
||||
} else {
|
||||
put_pod_value(d, key, SPA_TYPE_ROOT,
|
||||
SPA_POD_TYPE(pod),
|
||||
SPA_POD_BODY(pod),
|
||||
SPA_POD_BODY_SIZE(pod));
|
||||
put_pod_value(d, key, SPA_TYPE_ROOT, pod->type,
|
||||
SPA_POD_BODY(pod), pod->size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue