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

Commit 0b86e57b authored by Andreas Gampe's avatar Andreas Gampe
Browse files

audio: Fix read of uninitialized memory

Follow-up to fb12e20e.

Bug: 62425341
Test: m
Test: Device boots, com.android.phone doesn't crash
Change-Id: Ib54c7efae88cb0bff0f92e1cf1bd20a22fdcbdba
parent c1c9b132
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) {