mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 07:40:03 +01:00
si-audio-adapter: skip control ports from the list of ports to be linked
Related to: #294
This commit is contained in:
parent
11902666f9
commit
ba30a4fcec
1 changed files with 4 additions and 0 deletions
|
|
@ -744,6 +744,10 @@ si_audio_adapter_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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue