mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
handle cleanup of remote proxies
Destroying a resource informs the client to destroy the proxy. Destroying an object destroys all the bound resources on it.
This commit is contained in:
parent
e6f45a7686
commit
5e8a3afe17
8 changed files with 38 additions and 4 deletions
|
|
@ -71,6 +71,15 @@ pinos_resource_destroy (PinosResource *resource)
|
|||
if (resource->destroy)
|
||||
resource->destroy (resource);
|
||||
|
||||
if (resource->client->core_resource) {
|
||||
PinosMessageRemoveId m;
|
||||
m.id = resource->id;
|
||||
pinos_resource_send_message (resource->client->core_resource,
|
||||
PINOS_MESSAGE_REMOVE_ID,
|
||||
&m,
|
||||
true);
|
||||
}
|
||||
|
||||
pinos_main_loop_defer (resource->core->main_loop,
|
||||
resource,
|
||||
SPA_RESULT_WAIT_SYNC,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue