[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v1.0-dev-303-g8eed569
Lennart Poettering
gitmailer-noreply at 0pointer.de
Fri May 6 14:09:19 PDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 320b70e94ef8a253a954f316550a02fb94eb964d (commit)
- Log -----------------------------------------------------------------
8eed569 rtkit: use private bus connection in order to avoid threading issues when invoking pa_make_realtime()
-----------------------------------------------------------------------
Summary of changes:
src/pulsecore/core-util.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
commit 8eed56961481bded395005cfd1729c045c23b289
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri May 6 22:54:48 2011 +0200
rtkit: use private bus connection in order to avoid threading issues when invoking pa_make_realtime()
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index f769b32..6902ee9 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -661,7 +661,7 @@ static int set_scheduler(int rtprio) {
#ifdef HAVE_DBUS
/* Try to talk to RealtimeKit */
- if (!(bus = dbus_bus_get(DBUS_BUS_SYSTEM, &error))) {
+ if (!(bus = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error))) {
pa_log("Failed to connect to system bus: %s\n", error.message);
dbus_error_free(&error);
errno = -EIO;
@@ -674,6 +674,7 @@ static int set_scheduler(int rtprio) {
dbus_connection_set_exit_on_disconnect(bus, FALSE);
r = rtkit_make_realtime(bus, 0, rtprio);
+ dbus_connection_close(bus);
dbus_connection_unref(bus);
if (r >= 0) {
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list