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

Commit a9c6db92 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CCodec: request initial input buffers after start complete callback" into tm-dev

parents 85a25fc5 a027bf78
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1826,15 +1826,13 @@ void CCodec::start() {
        return;
    }

    err2 = mChannel->requestInitialInputBuffers();
    mCallback->onStartCompleted();

    err2 = mChannel->requestInitialInputBuffers();
    if (err2 != OK) {
        ALOGE("Initial request for Input Buffers failed");
        mCallback->onError(err2, ACTION_CODE_FATAL);
        return;
    }
    mCallback->onStartCompleted();

}

void CCodec::initiateShutdown(bool keepComponentAllocated) {
@@ -2128,7 +2126,11 @@ void CCodec::signalResume() {
        state->set(RUNNING);
    }

    (void)mChannel->requestInitialInputBuffers();
    status_t err = mChannel->requestInitialInputBuffers();
    if (err != OK) {
        ALOGE("Resume request for Input Buffers failed");
        mCallback->onError(err, ACTION_CODE_FATAL);
    }
}

void CCodec::signalSetParameters(const sp<AMessage> &msg) {