Use a PA function to compare specs instead of memcmp.
Otherwise valgrind complains a lot. Probably holes in the spec structure. Change-Id: I9580a73255820f49c0ac947eed1595a758f19ccd Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
c72ad5b190
commit
f538a3a8f8
@@ -617,7 +617,7 @@ void QSoundEffectPrivate::sampleReady()
|
||||
disconnect(m_sample, SIGNAL(ready()), this, SLOT(sampleReady()));
|
||||
pa_sample_spec newFormatSpec = audioFormatToSampleSpec(m_sample->format());
|
||||
|
||||
if (m_pulseStream && (memcmp(&m_pulseSpec, &newFormatSpec, sizeof(m_pulseSpec)) != 0)) {
|
||||
if (m_pulseStream && !pa_sample_spec_equal(&m_pulseSpec, &newFormatSpec)) {
|
||||
unloadPulseStream();
|
||||
}
|
||||
m_pulseSpec = newFormatSpec;
|
||||
|
||||
Reference in New Issue
Block a user