props: remove pointers in property values in protocol

Mark pointers in property values with pointer: and remove them
when sending the properties over the wire to avoid errors.
This commit is contained in:
Wim Taymans 2019-07-11 12:52:55 +02:00
parent f8127943cd
commit 0e765de519
9 changed files with 166 additions and 147 deletions

View file

@ -887,7 +887,7 @@ impl_init(const struct spa_handle_factory *factory,
if (info == NULL || (str = spa_dict_lookup(info, "audio.adapt.slave")) == NULL)
return -EINVAL;
sscanf(str, "%p", &this->slave);
sscanf(str, "pointer:%p", &this->slave);
if (this->slave == NULL)
return -EINVAL;