sendspin: implement receiver zeroconf connect

Let a receiver connect to the zeroconf server. Add option to connect to
multiple serves with rules.

Fix some leaks.

Fixes #5095
This commit is contained in:
Wim Taymans 2026-02-26 16:22:00 +01:00
parent d6654e84a7
commit 4a399172b6
2 changed files with 416 additions and 214 deletions

File diff suppressed because it is too large Load diff

View file

@ -925,6 +925,8 @@ static void client_free(struct client *c)
{
struct impl *impl = c->impl;
spa_list_remove(&c->link);
handle_client_goodbye(c, NULL);
if (c->conn) {
spa_hook_remove(&c->conn_listener);
@ -933,7 +935,8 @@ static void client_free(struct client *c)
pw_websocket_cancel(impl->websocket, c);
}
pw_timer_queue_cancel(&c->timer);
spa_list_remove(&c->link);
pw_properties_free(c->props);
free(c->name);
free(c);
}