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

Commit 29580820 authored by Ronghua Wu's avatar Ronghua Wu Committed by Android Git Automerger
Browse files

am 4d9492f1: Merge "libstagefright: remove CHECK from SoftHEVC ctor." into mnc-dev

* commit '4d9492f1':
  libstagefright: remove CHECK from SoftHEVC ctor.
parents 9cf724b0 4d9492f1
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -82,7 +82,10 @@ SoftHEVC::SoftHEVC(
    initPorts(
            kNumBuffers, max(kMaxOutputBufferSize / kMinCompressionRatio, (size_t)INPUT_BUF_SIZE),
            kNumBuffers, CODEC_MIME_TYPE, kMinCompressionRatio);
    CHECK_EQ(initDecoder(), (status_t)OK);
}

status_t SoftHEVC::init() {
    return initDecoder();
}

SoftHEVC::~SoftHEVC() {
@@ -766,5 +769,10 @@ void SoftHEVC::onQueueFilled(OMX_U32 portIndex) {
android::SoftOMXComponent *createSoftOMXComponent(const char *name,
        const OMX_CALLBACKTYPE *callbacks, OMX_PTR appData,
        OMX_COMPONENTTYPE **component) {
    return new android::SoftHEVC(name, callbacks, appData, component);
    android::SoftHEVC *codec = new android::SoftHEVC(name, callbacks, appData, component);
    if (codec->init() != android::OK) {
        android::sp<android::SoftOMXComponent> release = codec;
        return NULL;
    }
    return codec;
}
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,8 @@ struct SoftHEVC: public SoftVideoDecoderOMXComponent {
    SoftHEVC(const char *name, const OMX_CALLBACKTYPE *callbacks,
            OMX_PTR appData, OMX_COMPONENTTYPE **component);

    status_t init();

protected:
    virtual ~SoftHEVC();