diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index ac91c6cff..e6c62564e 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -5582,10 +5582,10 @@ static int register_media_endpoint(struct spa_bt_monitor *monitor, static int register_media_application(struct spa_bt_monitor * monitor) { const struct media_codec * const * const media_codecs = monitor->media_codecs; - const DBusObjectPathVTable vtable_object_manager_a2dp = { + static const DBusObjectPathVTable vtable_object_manager_a2dp = { .message_function = object_manager_handler_a2dp, }; - const DBusObjectPathVTable vtable_object_manager_bap = { + static const DBusObjectPathVTable vtable_object_manager_bap = { .message_function = object_manager_handler_bap, }; diff --git a/spa/plugins/bluez5/player.c b/spa/plugins/bluez5/player.c index 7b267e7d4..0a57e9209 100644 --- a/spa/plugins/bluez5/player.c +++ b/spa/plugins/bluez5/player.c @@ -247,11 +247,12 @@ static void update_properties(struct impl *impl, bool send_signal) struct spa_bt_player *spa_bt_player_new(void *dbus_connection, struct spa_log *log) { - struct impl *impl; - const DBusObjectPathVTable vtable = { + static const DBusObjectPathVTable vtable = { .message_function = player_handler, }; + struct impl *impl; + spa_log_topic_init(log, &log_topic); impl = calloc(1, sizeof(struct impl)); diff --git a/spa/plugins/bluez5/telephony.c b/spa/plugins/bluez5/telephony.c index 7695c0b81..a0dfe23c3 100644 --- a/spa/plugins/bluez5/telephony.c +++ b/spa/plugins/bluez5/telephony.c @@ -1150,7 +1150,7 @@ int telephony_ag_register(struct spa_bt_telephony_ag *ag) struct impl *impl = SPA_CONTAINER_OF(agimpl->this.telephony, struct impl, this); char *path; - const DBusObjectPathVTable vtable = { + static const DBusObjectPathVTable vtable = { .message_function = ag_handler, }; @@ -1648,7 +1648,7 @@ int telephony_call_register(struct spa_bt_telephony_call *call) struct impl *impl = SPA_CONTAINER_OF(agimpl->this.telephony, struct impl, this); char *path; - const DBusObjectPathVTable vtable = { + static const DBusObjectPathVTable vtable = { .message_function = call_handler, };