MCPcopy Create free account
hub / github.com/android/ndk-samples / Shutdown

Function Shutdown

native-codec/app/src/main/cpp/native-codec-jni.cpp:282–294  ·  view source on GitHub ↗

shut down the native media system

Source from the content-addressed store, hash-verified

280
281// shut down the native media system
282void Shutdown(JNIEnv*, jclass) {
283 LOGV("@@@ shutdown");
284 if (mlooper) {
285 mlooper->post(kMsgDecodeDone, &data, true /* flush */);
286 mlooper->quit();
287 delete mlooper;
288 mlooper = NULL;
289 }
290 if (data.window) {
291 ANativeWindow_release(data.window);
292 data.window = NULL;
293 }
294}
295
296// set the surface
297void SetSurface(JNIEnv* env, jclass, jobject surface) {

Callers

nothing calls this directly

Calls 2

postMethod · 0.80
quitMethod · 0.80

Tested by

no test coverage detected