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

Commit 8a3ff465 authored by Wonsik Kim's avatar Wonsik Kim Committed by Android (Google) Code Review
Browse files

Merge "media: reset total paused duration for MediaRecorder at stop"

parents d98985b9 148c3d67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1797,6 +1797,7 @@ status_t StagefrightRecorder::stop() {
        err = mWriter->stop();
        mWriter.clear();
    }
    mTotalPausedDurationUs = 0;

    mGraphicBufferProducer.clear();
    mPersistentSurface.clear();
@@ -1878,7 +1879,6 @@ status_t StagefrightRecorder::reset() {

    mOutputFd = -1;
    mPauseStartTimeUs = 0;
    mTotalPausedDurationUs = 0;

    return OK;
}