mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-27 05:40:25 +01:00
policy-node.lua: fix param name typo when finding target
Fixes unespected issues when finding first available target
This commit is contained in:
parent
a1923d8152
commit
debef67f3f
1 changed files with 2 additions and 2 deletions
|
|
@ -121,12 +121,12 @@ function findTargetByFirstAvailable (node, target_media_class)
|
|||
return nil
|
||||
end
|
||||
|
||||
function findTarget (node, target_class_assoc)
|
||||
function findTarget (node, target_media_class)
|
||||
local si_target = findTargetByTargetNodeMetadata (node, target_media_class)
|
||||
if not si_target then
|
||||
si_target = findTargetByNodeTargetProperty (node, target_media_class)
|
||||
if not si_target then
|
||||
si_target = findTargetByDefaultNode (node, target_class_assoc)
|
||||
si_target = findTargetByDefaultNode (node, target_media_class)
|
||||
if not si_target then
|
||||
si_target = findTargetByFirstAvailable (node, target_media_class)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue