diff --git a/modules/module-pw-bluez.c b/modules/module-pw-bluez.c index dd8e1afcee56beb93296a26c05ac892d3717f46d..179a5600ec25c1d43a3651e267ffeac38d3fd2a9 100644 --- a/modules/module-pw-bluez.c +++ b/modules/module-pw-bluez.c @@ -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);