properties: copy_keys -> update_keys

Change copy_keys to update_keys and make it more powerful by taking
a spa_dict as the source.
Copy some more properties in the session.
This commit is contained in:
Wim Taymans 2019-11-05 16:35:15 +01:00
parent 60cd74fdb0
commit 9df6efcd8d
12 changed files with 23 additions and 18 deletions

View file

@ -287,6 +287,7 @@ int endpoint_init(struct endpoint *this,
PW_KEY_FACTORY_ID,
PW_KEY_CLIENT_ID,
PW_KEY_DEVICE_ID,
PW_KEY_MEDIA_CLASS,
NULL
};
@ -299,7 +300,7 @@ int endpoint_init(struct endpoint *this,
if (!properties)
goto no_mem;
pw_properties_copy_keys(this->props, properties, keys);
pw_properties_update_keys(properties, &this->props->dict, keys);
this->global = pw_global_new (core,
PW_TYPE_INTERFACE_Endpoint,