summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-08 14:18:06 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-17 13:21:05 (GMT)
commit9fd8589c9d4574c04a989a6c5e1d335779d2b244 (patch)
treeeb97d0032314c76e6735bb34af1415e8210d4a6d /src/multimedia
parent4b0435b0dc2287756221e35f2ebe9493aad8306d (diff)
downloadQt-9fd8589c9d4574c04a989a6c5e1d335779d2b244.zip
Qt-9fd8589c9d4574c04a989a6c5e1d335779d2b244.tar.gz
Qt-9fd8589c9d4574c04a989a6c5e1d335779d2b244.tar.bz2
Discard buffer pointer when DevSound is stopped
Task-number: QTBUG-13504 Reviewed-by: Derick Hawcroft
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/audio/qaudiooutput_symbian_p.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudiooutput_symbian_p.cpp b/src/multimedia/audio/qaudiooutput_symbian_p.cpp
index c8b6ecf..cc32f9d 100644
--- a/src/multimedia/audio/qaudiooutput_symbian_p.cpp
+++ b/src/multimedia/audio/qaudiooutput_symbian_p.cpp
@@ -195,6 +195,7 @@ void QAudioOutputPrivate::suspend()
// lost data with silence following a call to resume(), in order to
// ensure that processedUSecs() returns the correct value.
m_devSound->stop();
+ m_devSoundBuffer = 0;
m_totalSamplesPlayed += samplesPlayed;
// Calculate the amount of data dropped