mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
small fixes
This commit is contained in:
parent
aada47252d
commit
ba518c0d9b
7 changed files with 8 additions and 7 deletions
|
|
@ -532,7 +532,7 @@ spa_pod_builder_addv(struct spa_pod_builder *builder,
|
|||
if (*format != '\0')
|
||||
format++;
|
||||
for (;*format;format++)
|
||||
flags |= spa_pod_flag_from_id(*format);
|
||||
SPA_FLAG_SET(flags, spa_pod_flag_from_id(*format));
|
||||
|
||||
spa_pod_builder_push_prop(builder, key, flags);
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@ static inline int spa_pod_fixate(struct spa_pod *pod)
|
|||
|
||||
SPA_POD_CONTENTS_FOREACH(pod, offset, res) {
|
||||
if (res->type == SPA_POD_TYPE_PROP)
|
||||
((struct spa_pod_prop *) res)->body.flags &= ~SPA_POD_PROP_FLAG_UNSET;
|
||||
SPA_FLAG_UNSET (((struct spa_pod_prop *) res)->body.flags,
|
||||
SPA_POD_PROP_FLAG_UNSET);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue