Skip to content
Snippets Groups Projects
Commit 27191698 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

policy: respect endpoint.autoconnect and don't link if it's false

parent d50e32fc
Branches apertis/v2022pre apertis/v2023dev0
Tags apertis/0.4.5-1+apertis1
No related merge requests found
......@@ -213,6 +213,12 @@ wp_config_policy_context_handle_endpoint (WpConfigPolicyContext *self,
g_autoptr (WpEndpoint) target = NULL;
g_autoptr (WpEndpointLink) link = NULL;
guint32 target_stream_id = SPA_ID_INVALID;
const gchar *ac = NULL;
/* No need to link if autoconnect == false */
ac = wp_proxy_get_property (WP_PROXY (ep), PW_KEY_ENDPOINT_AUTOCONNECT);
if (!(!g_strcmp0 (ac, "true") || !g_strcmp0 (ac, "1")))
return;
/* Get the endpoint target */
target = wp_config_policy_context_get_endpoint_target (self, session, ep,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment