mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 04:18:07 +02:00
s/link-target: mark links as role-based only if the role links rescan hook is enabled
Otherwise we would be left with broken links that are never activated
This commit is contained in:
parent
248b489b1b
commit
9436dc7afe
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ AsyncEventHook {
|
|||
-- role links are those that link to targets with intended-roles
|
||||
-- unless the stream is a monitor (usually pavucontrol) or the stream
|
||||
-- is linking to the monitor ports of a sink (both are "input")
|
||||
local is_media_role_link = target_props["device.intended-roles"] ~= nil
|
||||
local is_media_role_link = Core.test_feature ("hooks.linking.role-based.rescan")
|
||||
and target_props["device.intended-roles"] ~= nil
|
||||
and not cutils.parseBool (si_props ["stream.monitor"])
|
||||
and si_props["item.node.direction"] ~= target_props["item.node.direction"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue