mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -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
|
|
@ -2172,15 +2172,15 @@ int main(int argc, char *argv[])
|
|||
|
||||
support = pw_context_get_support(impl.this.context, &n_support);
|
||||
|
||||
if ((str = pw_properties_get(impl.this.props, "dbus")) == NULL ||
|
||||
pw_properties_parse_bool(str)) {
|
||||
impl.dbus = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_DBus);
|
||||
if (impl.dbus)
|
||||
impl.this.dbus_connection = spa_dbus_get_connection(impl.dbus, SPA_DBUS_TYPE_SESSION);
|
||||
impl.dbus = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_DBus);
|
||||
if (impl.dbus) {
|
||||
impl.this.dbus_connection = spa_dbus_get_connection(impl.dbus, SPA_DBUS_TYPE_SESSION);
|
||||
if (impl.this.dbus_connection == NULL)
|
||||
pw_log_warn("no dbus connection");
|
||||
else
|
||||
pw_log_debug("got dbus connection %p", impl.this.dbus_connection);
|
||||
} else {
|
||||
pw_log_info("dbus diabled");
|
||||
}
|
||||
|
||||
if ((res = start_session(&impl)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue