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

Commit c7099161 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

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

am: bfcfa005

Change-Id: Iaec35cbdcc0cb8c315488c8a4677055a3ad92851
parents 9345e689 bfcfa005
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) {