opensl: reverse init condition

Change-Id: If194ae1f58e2d7ffb14862135a420054d9268e76
This commit is contained in:
Adrien Béraud
2021-05-05 09:56:39 -04:00
parent 060b1fc6ca
commit 1261c0390c

View File

@ -56,7 +56,7 @@ void
OpenSLLayer::startStream(AudioDeviceType stream)
{
using namespace std::placeholders;
if (engineObject_)
if (!engineObject_)
initAudioEngine();
std::lock_guard<std::mutex> lock(mutex_);