mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: add info key indicating glib mainloop is usable
This commit is contained in:
parent
93a473eff6
commit
25f36e4334
3 changed files with 16 additions and 0 deletions
|
|
@ -807,6 +807,12 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
|
||||
spa_log_topic_init(this->log, &log_topic);
|
||||
|
||||
if (!(info && spa_atob(spa_dict_lookup(info, SPA_KEY_API_GLIB_MAINLOOP)))) {
|
||||
spa_log_error(this->log, "Glib mainloop is not usable: %s not set",
|
||||
SPA_KEY_API_GLIB_MAINLOOP);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
spa_hook_list_init(&this->hooks);
|
||||
|
||||
this->device.iface = SPA_INTERFACE_INIT(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue