mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-05 05:30:30 +01:00
fix: nil value in haveAvailableRoutes
Cause from partially renamed variables in af3c520d.
Closes #797
This commit is contained in:
parent
76b9e509d1
commit
ee42211bc6
1 changed files with 2 additions and 2 deletions
|
|
@ -387,10 +387,10 @@ function lutils.haveAvailableRoutes (si_props, devices_om)
|
|||
-- Check if available routes support the node's card.profile.device
|
||||
local found = 0
|
||||
for r in device:iterate_params ("EnumRoute") do
|
||||
local route = cutils.parseParam (p, "EnumRoute")
|
||||
local route = cutils.parseParam (r, "EnumRoute")
|
||||
if route and type (route.devices) == "table" then
|
||||
for _, i in ipairs (route.devices) do
|
||||
if i == tonumber (cpd) then
|
||||
if i == tonumber (card_profile_device) then
|
||||
found = found + 1
|
||||
if route.available ~= "no" then
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue