autoswitch-bluetooth-profile: Fix attempt to index a number value error

The getLinkedBluetoothLoopbackSourceNodeForStream() function expects stream to be
and object and not a stream ID.
This commit is contained in:
Julian Bouzas 2026-01-08 13:47:21 -05:00
parent b60b2f4ece
commit f088a6f63d

View file

@ -314,8 +314,7 @@ function getLinkedBluetoothLoopbackSourceNodeForStream (stream, node_om, link_om
Constraint { "bluez5.loopback", "!", "true", type = "pw" },
Constraint { "node.link-group", "=", filter_link_group, type = "pw" }
} do
local filter_stream_id = filter_stream_node["bound-id"]
local bt_node = getLinkedBluetoothLoopbackSourceNodeForStream (filter_stream_id, node_om, link_om, visited_link_groups)
local bt_node = getLinkedBluetoothLoopbackSourceNodeForStream (filter_stream_node, node_om, link_om, visited_link_groups)
if bt_node ~= nil then
return bt_node
end