android: simplify/improve the attachment of a thread to the Java VM
There is now only one way to get a JNIEnv: jni_get_env. This function use the
thread-specific data (TSD) areas to save a JNIEnv into a TSD key. The thread
will be automatically detached to the Java VM when it's canceled or exited.
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org>
Showing
- modules/audio_output/audiotrack.c 6 additions, 17 deletionsmodules/audio_output/audiotrack.c
- modules/codec/omxil/android_mediacodec.c 11 additions, 15 deletionsmodules/codec/omxil/android_mediacodec.c
- modules/codec/omxil/omxil.c 3 additions, 5 deletionsmodules/codec/omxil/omxil.c
- modules/video_output/android/android_window.c 2 additions, 5 deletionsmodules/video_output/android/android_window.c
- modules/video_output/android/nativewindow.c 3 additions, 4 deletionsmodules/video_output/android/nativewindow.c
- modules/video_output/android/surface.c 0 additions, 3 deletionsmodules/video_output/android/surface.c
Loading
Please register or sign in to comment