mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-01 12:47:59 +02:00
bluez-midi: set api.glib.mainloop
Indicate to the plugin that Glib mainloop = PW mainloop.
This commit is contained in:
parent
0978c224dc
commit
69fcdb5b69
1 changed files with 6 additions and 1 deletions
|
|
@ -64,6 +64,8 @@ function createNode(parent, id, type, factory, properties)
|
|||
properties["node.name"] = name .. "." .. counter
|
||||
end
|
||||
|
||||
properties["api.glib.mainloop"] = "true"
|
||||
|
||||
-- apply properties from config.rules
|
||||
rulesApplyProperties(properties)
|
||||
|
||||
|
|
@ -84,6 +86,8 @@ function createMonitor()
|
|||
end
|
||||
monitor_props["server"] = nil
|
||||
|
||||
monitor_props["api.glib.mainloop"] = "true"
|
||||
|
||||
local monitor = SpaDevice("api.bluez5.midi.enum", monitor_props)
|
||||
if monitor then
|
||||
monitor:connect("create-object", createNode)
|
||||
|
|
@ -119,7 +123,8 @@ function createServers()
|
|||
["node.name"] = v,
|
||||
["node.description"] = string.format(I18n.gettext("BLE MIDI %d"), i),
|
||||
["api.bluez5.role"] = "server",
|
||||
["factory.name"] = "api.bluez5.midi.node"
|
||||
["factory.name"] = "api.bluez5.midi.node",
|
||||
["api.glib.mainloop"] = "true",
|
||||
}
|
||||
rulesApplyProperties(node_props)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue