mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 07:50:49 +00:00
rtkit: Prevent libdbus crash
This commit is contained in:
parent
fb923cebe1
commit
52c8821294
1 changed files with 3 additions and 0 deletions
|
@ -335,6 +335,9 @@ int fluid_rtkit_make_realtime(pid_t thread, int priority) {
|
|||
long long max_rttime;
|
||||
struct rlimit old_limit, new_limit;
|
||||
|
||||
if (!dbus_threads_init_default())
|
||||
return -ENOMEM;
|
||||
|
||||
/* Initialize system bus connection */
|
||||
dbus_error_init(&error);
|
||||
conn = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error);
|
||||
|
|
Loading…
Reference in a new issue