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

Commit 448b966b authored by Atanas Kirilov's avatar Atanas Kirilov Committed by android-build-merger
Browse files

Merge changes from topic "am-79da5bca-0ca6-42a8-8b95-7ab98d864152" into oc-dev

am: 48dcdf9a

Change-Id: I6694213e5c47fe1d206a07b0086fb20eef68983e
parents 22eab8fe 48dcdf9a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -246,8 +246,9 @@ MediaBuffer* MidiEngine::readBuffer() {
        EAS_I32 numRendered;
        EAS_RESULT result = EAS_Render(mEasData, p, mEasConfig->mixBufferSize, &numRendered);
        if (result != EAS_SUCCESS) {
            ALOGE("EAS_Render returned %ld", result);
            break;
            ALOGE("EAS_Render() returned %ld, numBytesOutput = %d", result, numBytesOutput);
            buffer->release();
            return NULL; // Stop processing to prevent infinite loops.
        }
        p += numRendered * mEasConfig->numChannels;
        numBytesOutput += numRendered * mEasConfig->numChannels * sizeof(EAS_PCM);