If Pulse isn't ready, don't crash when trying to play.

Change-Id: I996581e4492004f716d44a39fb5f74c26c9f9ac2
Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
Michael Goddard
2011-11-17 17:22:36 +10:00
committed by Qt by Nokia
parent c814062dff
commit 6ea8d63729

View File

@@ -477,7 +477,7 @@ void QSoundEffectPrivate::play()
return;
PulseDaemonLocker locker;
if (!m_sampleReady || m_stopping || m_emptying) {
if (!m_sampleReady || !m_pulseStream || m_stopping || m_emptying) {
#ifdef QT_PA_DEBUG
qDebug() << this << "play deferred";
#endif