[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [PATCH]: fix kmix PulseAudio glib detection
From:       Kelly Anderson <kelly () silka ! with-linux ! com>
Date:       2011-12-29 5:03:35
Message-ID: 4EFBF4A7.4040202 () silka ! with-linux ! com
[Download RAW message or body]

Hi,

I was getting messages in my .xsession-errors.

kmixctrl(2487)/kmix Mixer_PULSE::Mixer_PULSE: Disabling PulseAudio 
integration for lack of GLib event loop.

It turns out on my system the className being used (kde 4.7.4) is 
"QEventDispatcherGlib" not "QGuiEventDispatcherGlib".

I patched the detection code to work with any className containing 
"Glib".  It works fine on my systems.

--- ./kmix/backends/mixer_pulse.cpp.orig    2011-12-01 
16:56:21.000000000 -0700
+++ ./kmix/backends/mixer_pulse.cpp    2011-12-28 15:47:32.333150968 -0700
@@ -877,9 +877,10 @@ Mixer_PULSE::Mixer_PULSE(Mixer *mixer, i
          s_pulseActive = INACTIVE;

      // We require a glib event loop
-    if 
(QLatin1String(QAbstractEventDispatcher::instance()->metaObject()->className())
-            != "QGuiEventDispatcherGlib") {
-        kDebug(67100) << "Disabling PulseAudio integration for lack of 
GLib event loop.";
+    QString 
dispatcherName(QLatin1String(QAbstractEventDispatcher::instance()->metaObject()->className()));
+    if (dispatcherName.indexOf("Glib") == -1) {
+        kDebug(67100) << "Disabling PulseAudio integration for lack of 
GLib event loop."
+                " current dispatcher: " << dispatcherName;
          s_pulseActive = INACTIVE;
      }



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic