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

Commit 0bf666a8 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 4da3769d: Merge "mediacodec: Don\'t crash if trying to open a codec that does not exist"

* commit '4da3769d':
  mediacodec: Don't crash if trying to open a codec that does not exist
parents 1ad8bf56 4da3769d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -96,7 +96,10 @@ status_t JMediaCodec::initCheck() const {
}

JMediaCodec::~JMediaCodec() {
    if (mCodec != NULL) {
        mCodec->release();
        mCodec.clear();
    }

    JNIEnv *env = AndroidRuntime::getJNIEnv();