diff options
Diffstat (limited to 'src/modules/module-session-manager/client-endpoint/endpoint.c')
-rw-r--r-- | src/modules/module-session-manager/client-endpoint/endpoint.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/module-session-manager/client-endpoint/endpoint.c b/src/modules/module-session-manager/client-endpoint/endpoint.c index 8bb1a160..fe22fbd3 100644 --- a/src/modules/module-session-manager/client-endpoint/endpoint.c +++ b/src/modules/module-session-manager/client-endpoint/endpoint.c @@ -324,16 +324,10 @@ int endpoint_init(struct endpoint *this, this->client_ep = client_ep; this->props = properties; - properties = pw_properties_new(NULL, NULL); - if (!properties) - goto no_mem; - - pw_properties_update_keys(properties, &this->props->dict, keys); - this->global = pw_global_new (context, PW_TYPE_INTERFACE_Endpoint, PW_VERSION_ENDPOINT, - properties, endpoint_bind, this); + NULL, endpoint_bind, this); if (!this->global) goto no_mem; @@ -344,6 +338,8 @@ int endpoint_init(struct endpoint *this, this->info.id = pw_global_get_id(this->global); this->info.props = &this->props->dict; + pw_global_update_keys(this->global, &this->props->dict, keys); + pw_resource_set_bound_id(client_ep->resource, this->info.id); return pw_global_register(this->global); |