summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorEckhart Koppen <eckhart.koppen@nokia.com>2011-02-16 15:34:00 (GMT)
committerEckhart Koppen <eckhart.koppen@nokia.com>2011-02-16 15:34:00 (GMT)
commit48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0 (patch)
treef6bfb9b3763195f24702203859d297e6dd56dcd8 /src/multimedia
parent899094da212e5bb1c3b9bce03b6c91d60cbdd13f (diff)
downloadQt-48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0.zip
Qt-48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0.tar.gz
Qt-48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0.tar.bz2
Made Q_ASSERT meaningful again
m_bytesPadding is an unsigned integer, assert would never have been triggered. Reviewed-by: TrustMe
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/audio/qaudiooutput_symbian_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudiooutput_symbian_p.cpp b/src/multimedia/audio/qaudiooutput_symbian_p.cpp
index ea7cd9f..5db7099 100644
--- a/src/multimedia/audio/qaudiooutput_symbian_p.cpp
+++ b/src/multimedia/audio/qaudiooutput_symbian_p.cpp
@@ -436,8 +436,8 @@ void QAudioOutputPrivate::writePaddingData()
unsigned char *ptr = const_cast<unsigned char*>(outputBuffer.Ptr());
Mem::FillZ(ptr, paddingBytes);
outputBuffer.SetLength(outputBuffer.Length() + paddingBytes);
+ Q_ASSERT(m_bytesPadding >= paddingBytes);
m_bytesPadding -= paddingBytes;
- Q_ASSERT(m_bytesPadding >= 0);
if (m_pullMode && m_source->atEnd())
lastBufferFilled();