mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-04 15:28:06 +02:00
config: fix enabled property to default to "true" when not defined
Fixes backwards compatibility with older config files Fixes: #254
This commit is contained in:
parent
b4eba2999e
commit
1f04530920
8 changed files with 8 additions and 8 deletions
|
|
@ -3,7 +3,7 @@ bluez_monitor.properties = {}
|
|||
bluez_monitor.rules = {}
|
||||
|
||||
function bluez_monitor.enable()
|
||||
if not bluez_monitor.enabled then
|
||||
if bluez_monitor.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ default_access.properties = {}
|
|||
default_access.rules = {}
|
||||
|
||||
function default_access.enable()
|
||||
if not default_access.enabled then
|
||||
if default_access.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ alsa_monitor.properties = {}
|
|||
alsa_monitor.rules = {}
|
||||
|
||||
function alsa_monitor.enable()
|
||||
if not alsa_monitor.enabled then
|
||||
if alsa_monitor.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ libcamera_monitor.properties = {}
|
|||
libcamera_monitor.rules = {}
|
||||
|
||||
function libcamera_monitor.enable()
|
||||
if not libcamera_monitor.enabled then
|
||||
if libcamera_monitor.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ v4l2_monitor.properties = {}
|
|||
v4l2_monitor.rules = {}
|
||||
|
||||
function v4l2_monitor.enable()
|
||||
if not v4l2_monitor.enabled then
|
||||
if v4l2_monitor.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ device_defaults.persistent_profiles = {
|
|||
}
|
||||
|
||||
function device_defaults.enable()
|
||||
if not device_defaults.enabled then
|
||||
if device_defaults.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ stream_defaults.rules = {
|
|||
}
|
||||
|
||||
function stream_defaults.enable()
|
||||
if not stream_defaults.enabled then
|
||||
if stream_defaults.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ bluetooth_policy.policy = {
|
|||
}
|
||||
|
||||
function default_policy.enable()
|
||||
if not default_policy.enabled then
|
||||
if default_policy.enabled == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue