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

Commit d664a63c authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Fix after aosp/2836447

Update 'memset' in StreamPrimary to fill the entire buffer.

Bug: 302132812
Bug: 302587331
Test: atest CtsMediaAudioTestCases
Change-Id: I6c2e0fc9ab49b35a9484ac3a900aefa9aa98315c
parent a1d092a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ StreamPrimary::StreamPrimary(StreamContext* context, const Metadata& metadata)
    } else {
        LOG(DEBUG) << __func__ << ": skipping transfer (" << frameCount << " frames)";
        *actualFrameCount = frameCount;
        if (mIsInput) memset(buffer, 0, frameCount);
        if (mIsInput) memset(buffer, 0, frameCount * mFrameSizeBytes);
        mSkipNextTransfer = false;
    }
    if (!mIsAsynchronous) {