am 4da3769d: Merge "mediacodec: Don\'t crash if trying to open a codec that does not exist"
* commit '4da3769d30851f0b517a688a5c835715d7d0b0bf': mediacodec: Don't crash if trying to open a codec that does not exist
This commit is contained in:
committed by
Android Git Automerger
commit
0bf666a875
@@ -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