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

Commit fd871c72 authored by Hangyu Kuang's avatar Hangyu Kuang Committed by Zhijun He
Browse files

media: Save last frame's timestamp for correct calculation of stopTimeOffset.

Bug: 37729515
Test: High speed recording at 240fps
Change-Id: Idc1018c9c3566a08485bea3ba3440554d07747b6
parent 1da85679
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -650,6 +650,7 @@ bool GraphicBufferSource::fillCodecBuffer_l() {
        }
        ALOGV("buffer submitted [slot=%d, useCount=%ld] acquired=%d",
                item.mBuffer->getSlot(), item.mBuffer.use_count(), mNumOutstandingAcquires);
        mLastFrameTimestampUs = itemTimeUs;
    }

    return true;