mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 07:40: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 om = source:call ("get-object-manager", "metadata")
|
||||||
local metadata = om:lookup { Constraint { "metadata.name", "=", "default" } }
|
local metadata = om:lookup { Constraint { "metadata.name", "=", "default" } }
|
||||||
|
if metadata == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if selected_node then
|
if selected_node then
|
||||||
local key = "default." .. def_node_type
|
local key = "default." .. def_node_type
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue