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

Commit 331207d5 authored by Chong Zhang's avatar Chong Zhang
Browse files

stagefright: lock mLock in codecBufferFilled

The locking is to protect mOriginalTimeUs, adding to which is done
in emptyBuffer under mLock.

bug: 38111548
Change-Id: If7853e3fe50c68279ee5d74373b53bc34bd56cfd
parent bbdae2f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1861,7 +1861,7 @@ status_t OMXNodeInstance::emptyNativeHandleBuffer_l(
}

void OMXNodeInstance::codecBufferFilled(omx_message &msg) {
    Mutex::Autolock autoLock(mBufferIDLock);
    Mutex::Autolock autoLock(mLock);

    if (mMaxTimestampGapUs <= 0ll || mRestorePtsFailed) {
        return;