policy-node: rescan also when streams are removed

This is useful, for example, to cleanup monitor streams in pavucontrol
after a stream has been destroyed.

Fixes #388
See also pipewire#1840
This commit is contained in:
George Kiagiadakis 2022-12-06 11:43:05 +02:00
parent 2107e301d6
commit 98d968caa6

View file

@ -964,9 +964,7 @@ end)
linkables_om:connect("object-removed", function (om, si)
unhandleLinkable (si)
if si.properties["item.node.type"] ~= "stream" then
scheduleRescan ()
end
scheduleRescan ()
end)
devices_om:connect("object-added", function (om, device)