MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / release

Method release

framework/codec/Android/jni/MediaCodec_Decoder.cpp:265–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265int MediaCodec_Decoder::release() {
266 JniEnv jniEnv{};
267
268 JNIEnv *env = jniEnv.getEnv();
269 if (env == nullptr) {
270 return MC_ERROR;
271 }
272
273 if (mMediaCodec == nullptr) {
274 return MC_ERROR;
275 }
276
277 int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_release);
278
279 return ret;
280}
281
282int MediaCodec_Decoder::dequeueInputBufferIndex(int64_t timeoutUs) {
283 JniEnv jniEnv{};

Callers

nothing calls this directly

Calls 2

getEnvMethod · 0.80
CallIntMethodMethod · 0.45

Tested by

no test coverage detected