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

Method flush

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

Source from the content-addressed store, hash-verified

229}
230
231int MediaCodec_Decoder::flush() {
232 JniEnv jniEnv{};
233
234 JNIEnv *env = jniEnv.getEnv();
235 if (env == nullptr) {
236 return MC_ERROR;
237 }
238
239 if (mMediaCodec == nullptr) {
240 return MC_ERROR;
241 }
242
243 int ret = env->CallIntMethod(mMediaCodec, jMediaCodec_flush);
244
245 return ret;
246}
247
248int MediaCodec_Decoder::stop() {
249 JniEnv jniEnv{};

Callers 1

flush_decoderMethod · 0.45

Calls 2

getEnvMethod · 0.80
CallIntMethodMethod · 0.45

Tested by

no test coverage detected