mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-16 07:10:24 +01:00
scripts: default-nodes: fix mistakes to make default-node selection work
This commit is contained in:
parent
28548e0933
commit
26e47db4b4
2 changed files with 3 additions and 3 deletions
|
|
@ -29,10 +29,10 @@ find_echo_cancel_default_node_hook = SimpleEventHook {
|
|||
end
|
||||
|
||||
-- Get the part after "audio." (= 6 characters)
|
||||
local srcsink = props ["default-node.type"]:sub (6)
|
||||
local srcsink = props ["default-node.type"]:sub (7)
|
||||
|
||||
for _, node_props in ipairs (available_nodes) do
|
||||
if isEchoCancelNode (node_props) then
|
||||
if isEchoCancelNode (node_props, srcsink) then
|
||||
local priority = node_props ["priority.session"]
|
||||
priority = math.tointeger (priority) or 0
|
||||
priority = priority + 10001 - i
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ store_configured_default_nodes_hook = SimpleEventHook {
|
|||
execute = function (event)
|
||||
local props = event:get_properties ()
|
||||
-- get the part after "default.configured." (= 19 chars)
|
||||
local def_node_type = props ["event.subject.key"]:sub (19)
|
||||
local def_node_type = props ["event.subject.key"]:sub (20)
|
||||
local new_value = props ["event.subject.value"]
|
||||
local new_stored = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue