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

Commit f442aac3 authored by Martin Storsjo's avatar Martin Storsjo Committed by Android Git Automerger
Browse files

am d932de9a: mediacodec: Don\'t crash if trying to open a codec that does not exist

* commit 'd932de9a':
  mediacodec: Don't crash if trying to open a codec that does not exist
parents 11f8c649 d932de9a
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();