diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2011-11-17 17:22:36 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-17 08:33:24 +0100 |
commit | 6ea8d63729dd1f4cb392d079b9b03f9ba9199eb1 (patch) | |
tree | 2835ff06c51f4d2fb9afc13ccbefb58d42918b37 /src/multimedia | |
parent | c814062dfff650762231f287524172110bd22ad3 (diff) |
If Pulse isn't ready, don't crash when trying to play.
Change-Id: I996581e4492004f716d44a39fb5f74c26c9f9ac2
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/effects/qsoundeffect_pulse_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/effects/qsoundeffect_pulse_p.cpp b/src/multimedia/effects/qsoundeffect_pulse_p.cpp index f2483a9ed..da617287a 100644 --- a/src/multimedia/effects/qsoundeffect_pulse_p.cpp +++ b/src/multimedia/effects/qsoundeffect_pulse_p.cpp @@ -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 |