Merge "mediacodec: Don't crash if trying to open a codec that does not exist"
This commit is contained in:
@@ -96,7 +96,10 @@ status_t JMediaCodec::initCheck() const {
|
||||
}
|
||||
|
||||
JMediaCodec::~JMediaCodec() {
|
||||
mCodec->release();
|
||||
if (mCodec != NULL) {
|
||||
mCodec->release();
|
||||
mCodec.clear();
|
||||
}
|
||||
|
||||
JNIEnv *env = AndroidRuntime::getJNIEnv();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user