From 2a4584216917a50a399d1e42c63e1f0dfffd7295 Mon Sep 17 00:00:00 2001 From: James Calligeros Date: Fri, 29 Mar 2024 15:34:44 +1000 Subject: [PATCH] node/software-dsp: do not hide target node when hide-parent is false The existence of props["hide-parent"] is truthy. Parse the boolean explicitly to get the correct logic. Signed-off-by: James Calligeros --- src/scripts/node/software-dsp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/node/software-dsp.lua b/src/scripts/node/software-dsp.lua index a6b2e077..1887408c 100644 --- a/src/scripts/node/software-dsp.lua +++ b/src/scripts/node/software-dsp.lua @@ -6,6 +6,7 @@ -- SPDX-License-Identifier: MIT log = Log.open_topic("s-node") +cutils = require ("common-utils") config = {} config.rules = Conf.get_section_as_json("node.software-dsp.rules", Json.Array{}) @@ -37,7 +38,7 @@ SimpleEventHook { filter_nodes[node.properties["object.id"]] = LocalModule("libpipewire-module-filter-chain", props["filter-graph"], {}) end - if props["hide-parent"] then + if cutils.parseBool (props["hide-parent"]) then log:debug("Setting permissions to '-' on " .. node.properties["node.name"] .. " for open clients") for client in clients_om:iterate{ type = "client" } do if not client["properties"]["wireplumber.daemon"] then