mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
media-session: also create EndpointLink objects
Create an endpoint link object when linking endpoints. Keep track of the links in the endpoint_link and cleanup when they are all gone. Improve properties on session objects.
This commit is contained in:
parent
4ccbce9932
commit
709a52e286
7 changed files with 277 additions and 60 deletions
|
|
@ -303,6 +303,8 @@ int endpoint_link_init(struct endpoint_link *this,
|
|||
this->id = id;
|
||||
this->props = properties;
|
||||
|
||||
pw_properties_setf(properties, PW_KEY_SESSION_ID, "%u", session_id);
|
||||
|
||||
properties = pw_properties_copy(properties);
|
||||
if (!properties)
|
||||
goto no_mem;
|
||||
|
|
@ -314,6 +316,8 @@ int endpoint_link_init(struct endpoint_link *this,
|
|||
if (!this->global)
|
||||
goto no_mem;
|
||||
|
||||
pw_properties_setf(this->props, PW_KEY_OBJECT_ID, "%u", this->global->id);
|
||||
|
||||
this->info.version = PW_VERSION_ENDPOINT_LINK_INFO;
|
||||
this->info.id = this->global->id;
|
||||
this->info.session_id = session_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue