client-node: dont' send peer_added with our own node

.. because it's just ignored in the client anyway.
This commit is contained in:
Wim Taymans 2019-08-16 15:08:21 +02:00
parent 47f0f1f9a3
commit aa2e2f192b

View file

@ -1521,6 +1521,9 @@ static void node_peer_added(void *data, struct pw_node *peer)
struct node *this = &impl->node; struct node *this = &impl->node;
struct pw_memblock *m; struct pw_memblock *m;
if (peer == impl->this.node)
return;
m = pw_mempool_import_block(this->client->pool, peer->activation); m = pw_mempool_import_block(this->client->pool, peer->activation);
if (m == NULL) { if (m == NULL) {
pw_log_debug(NAME " %p: can't ensure mem: %m", this); pw_log_debug(NAME " %p: can't ensure mem: %m", this);