mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 08:50:04 +01:00
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 <jcalligeros99@gmail.com>
This commit is contained in:
parent
b45eafa53c
commit
2a45842169
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue