If we fail to connect to pulse, don't enumerate sinks or sources.
Otherwise the pulse client library dislikes having methods called with a null context. Change-Id: I96629065b7a0e36e0d10402526cb167e65458e27 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
d2a4f632cd
commit
0c7a747663
@@ -264,9 +264,11 @@ QPulseAudioEngine::QPulseAudioEngine(QObject *parent)
|
||||
|
||||
pa_threaded_mainloop_unlock(m_mainLoop);
|
||||
|
||||
serverInfo();
|
||||
sinks();
|
||||
sources();
|
||||
if (ok) {
|
||||
serverInfo();
|
||||
sinks();
|
||||
sources();
|
||||
}
|
||||
}
|
||||
|
||||
QPulseAudioEngine::~QPulseAudioEngine()
|
||||
|
||||
Reference in New Issue
Block a user