Fix a crash problem in AudioEngine due to class name change.
authorLing Hu <ling.hu@nokia.com>
Fri, 13 Jul 2012 03:25:57 +0000 (13:25 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Jul 2012 04:46:39 +0000 (06:46 +0200)
Change-Id: I18a831ffc692b5aa6de6e2626f0dc916eb57c8b7
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
src/imports/audioengine/qaudioengine_openal_p.cpp

index 901e925..d58c785 100644 (file)
@@ -327,7 +327,7 @@ void QAudioEnginePrivate::releaseSoundBuffer(QSoundBuffer *buffer)
 #ifdef DEBUG_AUDIOENGINE
     qDebug() << "QAudioEnginePrivate: recycle sound buffer";
 #endif
-    if (buffer->inherits("StaticSoundBufferOpenAL")) {
+    if (buffer->inherits("StaticSoundBufferAL")) {
         StaticSoundBufferAL *staticBuffer = static_cast<StaticSoundBufferAL*>(buffer);
         //decrement the reference count, still kept in memory for reuse
         staticBuffer->release();