From 4da82d54753984bc2f4a9829d595bcd28f02faf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 4 Feb 2024 16:05:03 +0100 Subject: [PATCH] pipewire: module-rt: do not retrieve dbus message serial numbers They are not used, so don't query them from libdbus. --- src/modules/module-rt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index 9354ca5c9..2a23763c7 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -400,7 +400,7 @@ static int pw_rtkit_make_realtime(struct impl *impl, pid_t thread, int priority) spa_autoptr(DBusMessage) m = NULL; dbus_uint64_t pid; dbus_uint64_t u64; - dbus_uint32_t u32, serial; + dbus_uint32_t u32; struct pw_rtkit_bus *connection = impl->rtkit_bus; if (thread == 0) @@ -423,7 +423,7 @@ static int pw_rtkit_make_realtime(struct impl *impl, pid_t thread, int priority) return -ENOMEM; } - if (!dbus_connection_send(connection->bus, m, &serial)) + if (!dbus_connection_send(connection->bus, m, NULL)) return -EIO; return 0; @@ -435,7 +435,6 @@ static int pw_rtkit_make_high_priority(struct impl *impl, pid_t thread, int nice dbus_uint64_t pid; dbus_uint64_t u64; dbus_int32_t s32; - dbus_uint32_t serial; struct pw_rtkit_bus *connection = impl->rtkit_bus; if (thread == 0) @@ -458,7 +457,7 @@ static int pw_rtkit_make_high_priority(struct impl *impl, pid_t thread, int nice return -ENOMEM; } - if (!dbus_connection_send(connection->bus, m, &serial)) + if (!dbus_connection_send(connection->bus, m, NULL)) return -EIO; return 0;