mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
|
|
@ -969,7 +969,7 @@ static struct spa_pod *merge_objects(struct impl *this, struct spa_pod_builder *
|
|||
struct spa_pod_builder_state state;
|
||||
int res = 0;
|
||||
|
||||
if (o2 == NULL || SPA_POD_TYPE(o1) != SPA_POD_TYPE(o2))
|
||||
if (o2 == NULL || o1->pod.type != o2->pod.type)
|
||||
return (struct spa_pod*)o1;
|
||||
|
||||
spa_pod_builder_push_object(b, &f, o1->body.type, o1->body.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue