Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd670a28 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "SoundPool: Update queue only if streamID matches" am: f0f20c17 am:...

Merge "SoundPool: Update queue only if streamID matches" am: f0f20c17 am: 27383c90 am: e9b93172 am: 713e259d

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1905390

Change-Id: Ib4eb5416d231200c783ff2f2b09d856b4355d7fc
parents 324c7b28 713e259d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ void SoundPool::stop(int32_t streamID)
    auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr;
    soundpool::Stream* stream = mStreamManager.findStream(streamID);
    if (stream != nullptr && stream->requestStop(streamID)) {
        mStreamManager.moveToRestartQueue(stream);
        mStreamManager.moveToRestartQueue(stream, streamID);
    }
}