monitors: improve notice messages about missing SPA plugins

This commit is contained in:
George Kiagiadakis 2024-02-10 11:20:07 +02:00
parent 99ee41c490
commit 4d33aff107
4 changed files with 8 additions and 5 deletions

View file

@ -312,8 +312,8 @@ end
function createMonitor ()
local m = SpaDevice("api.alsa.enum.udev", config.properties)
if m == nil then
log:notice("PipeWire's SPA ALSA udev plugin(\"api.alsa.enum.udev\")"
.. "missing or broken. Sound Cards cannot be enumerated")
log:notice("PipeWire's ALSA SPA plugin is missing or broken. " ..
"Sound cards will not be supported")
return nil
end

View file

@ -379,7 +379,8 @@ function createMonitor()
if monitor then
monitor:connect("create-object", createDevice)
else
log:notice("PipeWire's BlueZ SPA missing or broken. Bluetooth not supported.")
log:notice("PipeWire's BlueZ SPA plugin is missing or broken. " ..
"Bluetooth devices will not be supported.")
return nil
end
monitor:activate(Feature.SpaDevice.ENABLED)

View file

@ -27,5 +27,6 @@ if monitor then
monitor:connect ("create-object", createCamDevice)
monitor:activate (Feature.SpaDevice.ENABLED)
else
log:notice ("PipeWire's libcamera SPA missing or broken. libcamera not supported.")
log:notice ("PipeWire's libcamera SPA plugin is missing or broken. " ..
"Some camera types may not be supported.")
end

View file

@ -27,5 +27,6 @@ if monitor then
monitor:connect ("create-object", createCamDevice)
monitor:activate (Feature.SpaDevice.ENABLED)
else
log:notice ("PipeWire's V4L SPA missing or broken. Video4Linux not supported.")
log:notice ("PipeWire's V4L2 SPA plugin is missing or broken. " ..
"Some camera types may not be supported.")
end