diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-08-16 15:08:21 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-08-16 15:08:21 +0200 |
commit | aa2e2f192bfc0ee79826c4734895a58ca257dd23 (patch) | |
tree | 3f540f1ed9cbc371d485c8ee64bd01eacc3f47b6 | |
parent | 47f0f1f9a3af00be541c23ee08fd8458c495014c (diff) |
client-node: dont' send peer_added with our own node
.. because it's just ignored in the client anyway.
-rw-r--r-- | src/modules/module-client-node/client-node.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index e920dde1..36adeb51 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -1521,6 +1521,9 @@ static void node_peer_added(void *data, struct pw_node *peer) struct node *this = &impl->node; struct pw_memblock *m; + if (peer == impl->this.node) + return; + m = pw_mempool_import_block(this->client->pool, peer->activation); if (m == NULL) { pw_log_debug(NAME " %p: can't ensure mem: %m", this); |