- trying to fix bug in sound player

This commit is contained in:
Mark Vejvoda 2013-02-02 06:29:26 +00:00
parent 8dc637527a
commit c913825650
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ SoundRenderer &SoundRenderer::getInstance() {
}
void SoundRenderer::update() {
if(soundPlayer != NULL) {
if(wasInitOk() == true && soundPlayer != NULL) {
MutexSafeWrapper safeMutex(NULL,string(__FILE__) + "_" + intToStr(__LINE__));
if(runThreadSafe == true) {
safeMutex.setMutex(&mutex);