module-access: fall back to client requested access mode

When nothing else was decided, use the client requested access
method. The idea is that pipewire-pulse will detect a flatpak client
an performs the pipewire connection on behalf of the client,
requesting flatpak access restrictions.
This commit is contained in:
Wim Taymans 2021-02-04 11:48:45 +01:00
parent 3659d70aef
commit d85862af71

View file

@ -229,6 +229,7 @@ context_check_access(void *data, struct pw_impl_client *client)
goto wait_permissions;
}
#endif
if ((access = pw_properties_get(props, PW_KEY_CLIENT_ACCESS)) == NULL)
access = "unrestricted";
granted: