Skip to content

Commit

Permalink
Fix PulseAudio support with Qt 5.12
Browse files Browse the repository at this point in the history
QAbstractEventDispatcher::instance()->metaObject()->className() now returns "QXcbGlibEventDispatcher", so the glib event loop test fails

Differential Revision: https://phabricator.kde.org/D17489
  • Loading branch information
antonio-rojas committed Dec 10, 2018
1 parent a7b5d61 commit be9fce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backends/mixer_pulse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,8 @@ Mixer_PULSE::Mixer_PULSE(Mixer *mixer, int devnum) : Mixer_Backend(mixer, devnum
s_pulseActive = INACTIVE;

// We require a glib event loop
if (!QByteArray(QAbstractEventDispatcher::instance()->metaObject()->className()).contains("EventDispatcherGlib")) {
if (!QByteArray(QAbstractEventDispatcher::instance()->metaObject()->className()).contains("EventDispatcherGlib") &&
!QByteArray(QAbstractEventDispatcher::instance()->metaObject()->className()).contains("GlibEventDispatcher")) {
qCDebug(KMIX_LOG) << "Disabling PulseAudio integration for lack of GLib event loop";
s_pulseActive = INACTIVE;
}
Expand Down

0 comments on commit be9fce8

Please sign in to comment.