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

Method start

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

Source from the content-addressed store, hash-verified

212}
213
214int MediaCodec_Decoder::start() {
215 JniEnv jniEnv{};
216
217 JNIEnv *env = jniEnv.getEnv();
218 if (env == nullptr) {
219 return MC_ERROR;
220 }
221
222 if (mMediaCodec == nullptr) {
223 return MC_ERROR;
224 }
225
226 int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_start);
227
228 return ret;
229}
230
231int MediaCodec_Decoder::flush() {
232 JniEnv jniEnv{};

Callers

nothing calls this directly

Calls 2

getEnvMethod · 0.80
CallIntMethodMethod · 0.45

Tested by

no test coverage detected