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

Commit e6832332 authored by Martin Storsjo's avatar Martin Storsjo Committed by Jean-Baptiste Queru
Browse files

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

Change-Id: If75e3156517993629f50622a84a9ac573fced815
parent 37548994
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();