summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-08-16 15:08:21 +0200
committerWim Taymans <wtaymans@redhat.com>2019-08-16 15:08:21 +0200
commitaa2e2f192bfc0ee79826c4734895a58ca257dd23 (patch)
tree3f540f1ed9cbc371d485c8ee64bd01eacc3f47b6
parent47f0f1f9a3af00be541c23ee08fd8458c495014c (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.c3
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);