mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 15:58:01 +02:00
session: ensure the exported properties do not leak object, client & factory ids
These are set by the server on the global properties set
This commit is contained in:
parent
7b222ebcbd
commit
ff36ff31e5
1 changed files with 5 additions and 0 deletions
|
|
@ -503,6 +503,11 @@ wp_exported_session_export (WpExported * self)
|
|||
g_autoptr (WpCore) core = wp_exported_get_core (self);
|
||||
struct pw_client_session_proxy *pw_proxy = NULL;
|
||||
|
||||
/* make sure these props are not present; they are added by the server */
|
||||
wp_properties_set (priv->properties, PW_KEY_OBJECT_ID, NULL);
|
||||
wp_properties_set (priv->properties, PW_KEY_CLIENT_ID, NULL);
|
||||
wp_properties_set (priv->properties, PW_KEY_FACTORY_ID, NULL);
|
||||
|
||||
priv->client_sess = wp_core_create_remote_object (core, "client-session",
|
||||
PW_TYPE_INTERFACE_ClientSession, PW_VERSION_CLIENT_SESSION_PROXY,
|
||||
priv->properties);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue