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

Commit eec84ca0 authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

stagefright: lock mLock in codecBufferFilled

am: 331207d5

Change-Id: I1fa691f88258b7b9983b80e089b11cbba9bb91cc
parents 117407c4 331207d5
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;