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

Commit 00345505 authored by zhangjincheng's avatar zhangjincheng Committed by jincheng zhang
Browse files

libstagefright: initializes member variables in constructor



The member variables are not initialized anywhere

Change-Id: Ie7c447a321b5d0d28c3532f8de46ff51b755b585
Signed-off-by: default avatarzhangjincheng <zhangjincheng@xiaomi.com>
parent 580a0d55
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.