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

Method stop

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

Source from the content-addressed store, hash-verified

246}
247
248int MediaCodec_Decoder::stop() {
249 JniEnv jniEnv{};
250
251 JNIEnv *env = jniEnv.getEnv();
252 if (env == nullptr) {
253 return MC_ERROR;
254 }
255
256 if (mMediaCodec == nullptr) {
257 return MC_ERROR;
258 }
259
260 int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_stop);
261
262 return ret;
263}
264
265int MediaCodec_Decoder::release() {
266 JniEnv jniEnv{};

Callers

nothing calls this directly

Calls 2

getEnvMethod · 0.80
CallIntMethodMethod · 0.45

Tested by

no test coverage detected