mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: handle if the module is destroyed while loading
Create a new event for modules ('destroy') which is emitted from
`module_free()`. It is used by the module loading logic, to handle
when a module is destroyed without properly loading first.
This commit is contained in:
parent
bd5a715200
commit
0e75b3fa0f
3 changed files with 10 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ void module_free(struct module *module)
|
|||
{
|
||||
struct impl *impl = module->impl;
|
||||
|
||||
module_emit_destroy(module);
|
||||
|
||||
if (module->idx != SPA_ID_INVALID)
|
||||
pw_map_remove(&impl->modules, module->idx & INDEX_MASK);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue