si-node: skip control ports from the list of ports to be linked

Related to: #294
This commit is contained in:
George Kiagiadakis 2022-06-28 10:52:49 +03:00
parent 254c3284e3
commit 261ccf9972

View file

@ -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);