mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 04:10:03 +01:00
l/find-best-target: Allow regular filters to be best targets
Similar to4868b3c3andfa671216, we always want to treat regular filters as normal stream/device nodes.
This commit is contained in:
parent
fe42d931da
commit
96dc045382
2 changed files with 6 additions and 2 deletions
|
|
@ -579,6 +579,7 @@ wireplumber.components = [
|
|||
{
|
||||
name = linking/find-best-target.lua, type = script/lua
|
||||
provides = hooks.linking.target.find-best
|
||||
requires = [ metadata.filters ]
|
||||
}
|
||||
{
|
||||
name = linking/get-filter-from-target.lua, type = script/lua
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
lutils = require ("linking-utils")
|
||||
cutils = require ("common-utils")
|
||||
futils = require ("filter-utils")
|
||||
log = Log.open_topic ("s-linking")
|
||||
|
||||
SimpleEventHook {
|
||||
|
|
@ -52,8 +53,10 @@ SimpleEventHook {
|
|||
tostring (target_props ["node.name"]),
|
||||
tostring (target_node_id)))
|
||||
|
||||
if si_target_link_group ~= nil then
|
||||
Log.debug ("... ignoring filter as best target")
|
||||
-- Skip smart filters as best target
|
||||
if si_target_link_group ~= nil and
|
||||
futils.is_filter_smart (target_direction, si_target_link_group) then
|
||||
Log.debug ("... ignoring smart filter as best target")
|
||||
goto skip_linkable
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue