mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 17:08:01 +02:00
alsa: use "obj_type" as a variable name to avoid shadowing lua's "type" function
This causes a crash when running in a VM because the code tries to execute lua's "type()" and ends up executing the local string variable... Fixes: #303
This commit is contained in:
parent
80b3559963
commit
c16e637c32
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ function nonempty(str)
|
|||
return str ~= "" and str or nil
|
||||
end
|
||||
|
||||
function createNode(parent, id, type, factory, properties)
|
||||
function createNode(parent, id, obj_type, factory, properties)
|
||||
local dev_props = parent.properties
|
||||
|
||||
-- set the device id and spa factory name; REQUIRED, do not change
|
||||
|
|
@ -199,7 +199,7 @@ function createDevice(parent, id, factory, properties)
|
|||
end
|
||||
end
|
||||
|
||||
function prepareDevice(parent, id, type, factory, properties)
|
||||
function prepareDevice(parent, id, obj_type, factory, properties)
|
||||
-- ensure the device has an appropriate name
|
||||
local name = "alsa_card." ..
|
||||
(properties["device.name"] or
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue