modules: port zeroconf-discover to new helper

This commit is contained in:
Wim Taymans 2026-02-26 18:39:41 +01:00
parent b67937f247
commit 79d8e7f61d
2 changed files with 58 additions and 171 deletions

View file

@ -529,7 +529,7 @@ struct pw_zeroconf * pw_zeroconf_new(struct pw_context *context,
const char *k = props->items[i].key;
const char *v = props->items[i].value;
if (spa_streq(k, "zeroconf.discover-local"))
if (spa_streq(k, "zeroconf.discover-local") && v)
zc->discover_local = spa_atob(v);
}