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

Commit 47c018a4 authored by Sungtak Lee's avatar Sungtak Lee
Browse files

CCodec: Report error when display surface is obsolete

When surface to display is obsolete the error should be notified
promptly.

Bug: 172173515
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I6c3f623a6347a1ec668812805a9a9d7ea710342a
parent 5692578e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -817,6 +817,9 @@ status_t CCodecBufferChannel::renderOutputBuffer(
    status_t result = mComponent->queueToOutputSurface(block, qbi, &qbo);
    if (result != OK) {
        ALOGI("[%s] queueBuffer failed: %d", mName, result);
        if (result == NO_INIT) {
            mCCodecCallback->onError(UNKNOWN_ERROR, ACTION_CODE_FATAL);
        }
        return result;
    }
    ALOGV("[%s] queue buffer successful", mName);