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

Commit bfcfa005 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio: Fix read of uninitialized memory" into oc-dr1-dev

parents eeb4d73d 0b86e57b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1562,9 +1562,9 @@ status_t AudioTrack::createTrack_l()
    }

    mAudioTrack->attachAuxEffect(mAuxEffectId);
    mFrameCount = frameCount;
    updateLatency_l();  // this refetches mAfLatency and sets mLatency

    mFrameCount = frameCount;
    // If IAudioTrack is re-created, don't let the requested frameCount
    // decrease.  This can confuse clients that cache frameCount().
    if (frameCount > mReqFrameCount) {