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

Commit f25dd316 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libstagefright: initializes member variables in constructor"

parents a60bf718 00345505
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -556,6 +556,10 @@ void MPEG4Writer::initInternal(int fd, bool isFirstSession) {
    mResetStatus = OK;
    mPreAllocFirstTime = true;
    mPrevAllTracksTotalMetaDataSizeEstimate = 0;
    mIsFirstChunk = false;
    mDone = false;
    mThread = 0;
    mDriftTimeUs = 0;

    // Following variables only need to be set for the first recording session.
    // And they will stay the same for all the recording sessions.