mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
60cd74fdb0
commit
9df6efcd8d
12 changed files with 23 additions and 18 deletions
|
|
@ -83,6 +83,8 @@ static int client_endpoint_stream_update(void *object,
|
|||
PW_KEY_FACTORY_ID,
|
||||
PW_KEY_CLIENT_ID,
|
||||
PW_KEY_ENDPOINT_ID,
|
||||
PW_KEY_MEDIA_CLASS,
|
||||
PW_KEY_PRIORITY_SESSION,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
@ -93,7 +95,10 @@ static int client_endpoint_stream_update(void *object,
|
|||
props = pw_properties_new(NULL, NULL);
|
||||
if (!props)
|
||||
goto no_mem;
|
||||
pw_properties_copy_keys (endpoint->props, props, keys);
|
||||
|
||||
pw_properties_update_keys(props, &endpoint->props->dict, keys);
|
||||
if (info && info->props)
|
||||
pw_properties_update_keys(props, info->props, keys);
|
||||
|
||||
if (endpoint_stream_init(stream, stream_id, endpoint->info.id,
|
||||
this, core, props) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue