Commit 72e13919 authored by George Kiagiadakis's avatar George Kiagiadakis

bluez: warn if the SPA bluez plugin is not installed instead of asserting

parent 3d46253d
......@@ -417,7 +417,10 @@ start_monitor (WpRemotePipewire *remote, WpRemoteState state, gpointer data)
/* Load the monitor handle */
handle = (struct spa_handle *)wp_remote_pipewire_load_spa_handle (
impl->remote_pipewire, SPA_NAME_API_BLUEZ5_MONITOR, NULL);
g_return_if_fail (handle);
if (!handle) {
g_message ("SPA bluez5 plugin could not be loaded; is it installed?");
return;
}
/* Get the handle interface */
res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_Monitor, &iface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment