mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-30 11:10:29 -04:00
spa: support props flags building and parsing
Add an option to make a property with specific flags. Do this by changing the parser and builder to see the invalid property as an escape sequence followed by the property key and the flags.
This commit is contained in:
parent
41e6e875e5
commit
9df770eb16
3 changed files with 17 additions and 5 deletions
|
|
@ -625,10 +625,14 @@ spa_pod_builder_addv(struct spa_pod_builder *builder, va_list args)
|
|||
switch (ftype) {
|
||||
case SPA_TYPE_Object:
|
||||
{
|
||||
uint32_t key = va_arg(args, uint32_t);
|
||||
uint32_t key = va_arg(args, uint32_t), flags = 0;
|
||||
if (key == 0)
|
||||
goto exit;
|
||||
spa_pod_builder_prop(builder, key, 0);
|
||||
if (key == SPA_ID_INVALID) {
|
||||
key = va_arg(args, uint32_t);
|
||||
flags = va_arg(args, uint32_t);
|
||||
}
|
||||
spa_pod_builder_prop(builder, key, flags);
|
||||
break;
|
||||
}
|
||||
case SPA_TYPE_Sequence:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue