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

Commit e4222798 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

Change-Id: Ib5d83c4bca072150c4a85905895088de4bdb8bf0
parents ae465be4 18b22afe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -561,6 +561,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();