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

Commit b51457f8 authored by Andy Hung's avatar Andy Hung
Browse files

Fix race condition in signaling completion for decode.

Bug: 18048775
Change-Id: I2207eb2cf30cf205d9bf414edbb1d3e709185f67
parent 97e6ca1a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2125,6 +2125,7 @@ ssize_t MediaPlayerService::AudioCache::write(const void* buffer, size_t size)
        // immutable with respect to future writes.
        //
        // It is thus safe for another thread to read the AudioCache.
        Mutex::Autolock lock(mLock);
        mCommandComplete = true;
        mSignal.signal();
    }