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

Commit af6aa6e3 authored by Wonsik Kim's avatar Wonsik Kim Committed by android-build-merger
Browse files

Merge "nuplayer: handle error from MediaCodec in Decoder handleAnOutputBuffer"...

Merge "nuplayer: handle error from MediaCodec in Decoder handleAnOutputBuffer" into mnc-dev am: 7fad4bb2 am: 18b22afe am: e4222798
am: f669386f

Change-Id: I15571eb5c05ea0bbf77ec5a746c989d84f38ccee
parents 08ef7197 f669386f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -560,6 +560,11 @@ bool NuPlayer::Decoder::handleAnOutputBuffer(
    sp<ABuffer> buffer;
    mCodec->getOutputBuffer(index, &buffer);

    if (buffer == NULL) {
        handleError(UNKNOWN_ERROR);
        return false;
    }

    if (index >= mOutputBuffers.size()) {
        for (size_t i = mOutputBuffers.size(); i <= index; ++i) {
            mOutputBuffers.add();