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

Commit 019b0d27 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add check for valueFor api to address key not found issue" into main

parents f1cc28e5 41fb9985
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -286,9 +286,11 @@ void SoftMPEG4::onQueueFilled(OMX_U32 /* portIndex */) {
            return;
        }

        if (mPvToOmxTimeMap.indexOfKey(timestamp) >= 0) {
            // decoder deals in ms, OMX in us.
            outHeader->nTimeStamp = mPvToOmxTimeMap.valueFor(timestamp);
            mPvToOmxTimeMap.removeItem(timestamp);
        }

        inHeader->nOffset += bufferSize;
        inHeader->nFilledLen = 0;