mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 04:10:03 +01:00
apply-default-node: Make sure the metadata is valid
This fixes some warnings in the Lua tests scripts from tests/scripts/scripts/*
This commit is contained in:
parent
238fd3c067
commit
c0e047c241
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ SimpleEventHook {
|
|||
|
||||
local om = source:call ("get-object-manager", "metadata")
|
||||
local metadata = om:lookup { Constraint { "metadata.name", "=", "default" } }
|
||||
if metadata == nil then
|
||||
return
|
||||
end
|
||||
|
||||
if selected_node then
|
||||
local key = "default." .. def_node_type
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue