mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Move listeners to spa and rename to hooks
The listeners are generally useful in spa, move it there and rename to hooks. Implement loop hooks with it. Fix some cleanup issues in stream and remote
This commit is contained in:
parent
6b6b827a3b
commit
600055bd68
55 changed files with 428 additions and 383 deletions
|
|
@ -121,8 +121,8 @@ struct impl {
|
|||
|
||||
struct pw_client_node_transport *transport;
|
||||
|
||||
struct pw_listener node_listener;
|
||||
struct pw_listener resource_listener;
|
||||
struct spa_hook node_listener;
|
||||
struct spa_hook resource_listener;
|
||||
|
||||
int fds[2];
|
||||
int other_fds[2];
|
||||
|
|
@ -1098,7 +1098,7 @@ static void node_free(void *data)
|
|||
if (impl->transport)
|
||||
pw_client_node_transport_destroy(impl->transport);
|
||||
|
||||
pw_listener_remove(&impl->node_listener);
|
||||
spa_hook_remove(&impl->node_listener);
|
||||
|
||||
if (impl->fds[0] != -1)
|
||||
close(impl->fds[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue