mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
media-session: handle missing dbus support
This commit is contained in:
parent
04354215b6
commit
2c2ba6eec3
2 changed files with 17 additions and 5 deletions
|
|
@ -346,6 +346,15 @@ static void do_permission_store_check(struct client *client)
|
|||
client);
|
||||
return;
|
||||
}
|
||||
if (impl->bus == NULL) {
|
||||
pw_log_debug("Ignoring portal check for client %p: dbus disabled",
|
||||
client);
|
||||
client->allowed_media_roles = MEDIA_ROLE_ALL;
|
||||
sm_media_session_for_each_object(impl->session,
|
||||
set_global_permissions,
|
||||
client);
|
||||
return;
|
||||
}
|
||||
|
||||
client->allowed_media_roles = MEDIA_ROLE_NONE;
|
||||
|
||||
|
|
@ -553,6 +562,9 @@ static int init_dbus_connection(struct impl *impl)
|
|||
{
|
||||
DBusError error;
|
||||
|
||||
if (impl->bus == NULL)
|
||||
return 0;
|
||||
|
||||
dbus_error_init(&error);
|
||||
|
||||
dbus_bus_add_match(impl->bus,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue