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

Commit 88ec9e99 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "Fix race condition in signaling completion for decode." into lmp-mr1-dev

parents 39b109a1 b51457f8
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();
    }