mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-06 04:06:36 -05:00
Revert "stream: add peer_added and peer_removed signals"
This reverts commit 3eb011c9d1.
Not a good idea, the internal signals are for scheduling peers and so
some peers are simply not signaled when they don't need to be scheduled,
like for async nodes or upstream nodes.
This commit is contained in:
parent
d610c84e31
commit
ffb7663f4d
6 changed files with 14 additions and 40 deletions
|
|
@ -1270,14 +1270,11 @@ static void client_node_resource_pong(void *data, int seq)
|
|||
spa_node_emit_result(&impl->hooks, seq, 0, 0, NULL);
|
||||
}
|
||||
|
||||
static void node_peer_added(void *data, struct pw_impl_node *peer, uint32_t id)
|
||||
static void node_peer_added(void *data, struct pw_impl_node *peer)
|
||||
{
|
||||
struct impl *impl = data;
|
||||
struct pw_memblock *m;
|
||||
|
||||
if (peer == NULL)
|
||||
return;
|
||||
|
||||
m = pw_mempool_import_block(impl->client_pool, peer->activation);
|
||||
if (m == NULL) {
|
||||
pw_log_warn("%p: can't ensure mem: %m", impl);
|
||||
|
|
@ -1298,14 +1295,11 @@ static void node_peer_added(void *data, struct pw_impl_node *peer, uint32_t id)
|
|||
sizeof(struct pw_node_activation));
|
||||
}
|
||||
|
||||
static void node_peer_removed(void *data, struct pw_impl_node *peer, uint32_t id)
|
||||
static void node_peer_removed(void *data, struct pw_impl_node *peer)
|
||||
{
|
||||
struct impl *impl = data;
|
||||
struct pw_memblock *m;
|
||||
|
||||
if (peer == NULL)
|
||||
return;
|
||||
|
||||
m = pw_mempool_find_fd(impl->client_pool, peer->activation->fd);
|
||||
if (m == NULL) {
|
||||
pw_log_warn("%p: unknown peer %p fd:%d", impl, peer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue