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:
committed by
Qt by Nokia
parent
c814062dff
commit
6ea8d63729
@@ -477,7 +477,7 @@ void QSoundEffectPrivate::play()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
PulseDaemonLocker locker;
|
PulseDaemonLocker locker;
|
||||||
if (!m_sampleReady || m_stopping || m_emptying) {
|
if (!m_sampleReady || !m_pulseStream || m_stopping || m_emptying) {
|
||||||
#ifdef QT_PA_DEBUG
|
#ifdef QT_PA_DEBUG
|
||||||
qDebug() << this << "play deferred";
|
qDebug() << this << "play deferred";
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user