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

Commit f23f9e5c authored by Chih-Yu Huang's avatar Chih-Yu Huang
Browse files

Fix build breakage in C2Decoder and C2Encoder

I6c8c2de0888944f57b4ea404a5f589e70ee61dc4 changed the signature of
the function, but the caller in the test was not updated.

Bug: None
Test: mmm frameworks/av
Change-Id: I9b26177b367d74f4a229dd672e3002c8a437d1b2
parent 2a0c253b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -53,8 +53,8 @@ int32_t C2Decoder::createCodec2Component(string compName, AMediaFormat *format)
    }

    int64_t sTime = mStats->getCurTime();
    mComponent = mClient->CreateComponentByName(compName.c_str(), mListener, &mClient);
    if (mComponent == nullptr) {
    if (mClient->CreateComponentByName(compName.c_str(), mListener, &mComponent, &mClient) !=
        C2_OK) {
        ALOGE("Create component failed for %s", compName.c_str());
        return -1;
    }
+2 −2
Original line number Diff line number Diff line
@@ -68,8 +68,8 @@ int32_t C2Encoder::createCodec2Component(string compName, AMediaFormat *format)
    }

    int64_t sTime = mStats->getCurTime();
    mComponent = mClient->CreateComponentByName(compName.c_str(), mListener, &mClient);
    if (mComponent == nullptr) {
    if (mClient->CreateComponentByName(compName.c_str(), mListener, &mComponent, &mClient) !=
        C2_OK) {
        ALOGE("Create component failed for %s", compName.c_str());
        return -1;
    }