From 261ccf9972dffc32f4740592a54e27ddaf586107 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 28 Jun 2022 10:52:49 +0300 Subject: [PATCH] si-node: skip control ports from the list of ports to be linked Related to: #294 --- modules/module-si-node.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/module-si-node.c b/modules/module-si-node.c index 2aa078ac..8879c1f2 100644 --- a/modules/module-si-node.c +++ b/modules/module-si-node.c @@ -193,6 +193,10 @@ si_node_get_ports (WpSiLinkable * item, const gchar * context) port_id = wp_proxy_get_bound_id (WP_PROXY (port)); props = wp_pipewire_object_get_properties (WP_PIPEWIRE_OBJECT (port)); + /* skip control ports for now */ + if (spa_atob (wp_properties_get (props, PW_KEY_PORT_CONTROL))) + continue; + /* try to find the audio channel; if channel is NULL, this will silently leave the channel_id to its default value, 0 */ channel = wp_properties_get (props, PW_KEY_AUDIO_CHANNEL);