mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse: track loaded modules
Track the proxies we load in a module_info and free the proxy on unload or exit.
This commit is contained in:
parent
4370675d2b
commit
0b588b2bfd
3 changed files with 62 additions and 5 deletions
|
|
@ -325,6 +325,13 @@ struct global {
|
|||
};
|
||||
};
|
||||
|
||||
struct module_info {
|
||||
struct spa_list link; /* link in context modules */
|
||||
uint32_t id;
|
||||
struct pw_proxy *proxy;
|
||||
struct spa_hook listener;
|
||||
};
|
||||
|
||||
struct pa_context {
|
||||
int refcount;
|
||||
uint32_t client_index;
|
||||
|
|
@ -359,6 +366,7 @@ struct pa_context {
|
|||
|
||||
struct spa_list streams;
|
||||
struct spa_list operations;
|
||||
struct spa_list modules;
|
||||
|
||||
int no_fail:1;
|
||||
int disconnect:1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue