mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-07 04:06:12 -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
|
|
@ -646,10 +646,11 @@ struct spa_pod * pw_protocol_native0_pod_from_v2(struct pw_impl_client *client,
|
|||
if (pod == NULL)
|
||||
return NULL;
|
||||
|
||||
if ((res = remap_from_v2(SPA_POD_TYPE(pod),
|
||||
SPA_POD_BODY(pod),
|
||||
SPA_POD_BODY_SIZE(pod),
|
||||
client, &b)) < 0) {
|
||||
if ((res = remap_from_v2(pod->type,
|
||||
SPA_POD_BODY(pod),
|
||||
pod->size,
|
||||
client,
|
||||
&b)) < 0) {
|
||||
errno = -res;
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -669,9 +670,9 @@ int pw_protocol_native0_pod_to_v2(struct pw_impl_client *client, const struct sp
|
|||
}
|
||||
|
||||
if ((res = remap_to_v2(client, pw_type_info(),
|
||||
SPA_POD_TYPE(pod),
|
||||
pod->type,
|
||||
SPA_POD_BODY(pod),
|
||||
SPA_POD_BODY_SIZE(pod),
|
||||
pod->size,
|
||||
b)) < 0) {
|
||||
return -res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue