diff --git a/src/modules/audio/openal/Pool.cpp b/src/modules/audio/openal/Pool.cpp index cddb10edc..efc71e603 100644 --- a/src/modules/audio/openal/Pool.cpp +++ b/src/modules/audio/openal/Pool.cpp @@ -118,11 +118,11 @@ int Pool::getMaxSources() const bool Pool::play(Source *source, ALuint &out) { - bool ok; - out = 0; - thread::Lock lock(mutex); + bool ok = true; + out = 0; + bool alreadyPlaying = findSource(source, out); if (!alreadyPlaying)