mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: don't export NETWORK nodes
Don't export network nodes with zeroconf. Fixes #2384
This commit is contained in:
parent
05deba85a4
commit
b81b7febee
1 changed files with 10 additions and 0 deletions
|
|
@ -545,10 +545,20 @@ static void manager_removed(void *d, struct pw_manager_object *o)
|
|||
static void manager_added(void *d, struct pw_manager_object *o)
|
||||
{
|
||||
struct service *s;
|
||||
struct pw_node_info *info;
|
||||
const char *str;
|
||||
|
||||
if (!pw_manager_object_is_sink(o) && !pw_manager_object_is_source(o))
|
||||
return;
|
||||
|
||||
info = o->info;
|
||||
if (info == NULL || info->props == NULL)
|
||||
return;
|
||||
|
||||
if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_NETWORK)) != NULL &&
|
||||
spa_atob(str))
|
||||
return;
|
||||
|
||||
s = create_service(d, o);
|
||||
if (s == NULL)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue