mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 07:48:01 +02:00
alsa: handle the release-requested signal
Handle the release-requested signal by destroying the device and then calling release. Fixes pipewire/pipewire#1846
This commit is contained in:
parent
c88fbd20e6
commit
efd2458418
1 changed files with 6 additions and 0 deletions
|
|
@ -287,6 +287,12 @@ function prepareDevice(parent, id, type, factory, properties)
|
|||
end
|
||||
end)
|
||||
|
||||
rd:connect("release-requested", function (rd)
|
||||
Log.info("release requested")
|
||||
parent:store_managed_object(id, nil)
|
||||
rd:call("release")
|
||||
end)
|
||||
|
||||
if jack_device then
|
||||
rd:connect("notify::owner-name-changed", function (rd, pspec)
|
||||
if rd["state"] == "busy" and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue