|
|
|
@ -11,7 +11,8 @@ |
|
|
|
#include "video_core/rasterizer_interface.h"
|
|
|
|
#include "common/android/multiplayer/multiplayer.h"
|
|
|
|
#include <network/network.h>
|
|
|
|
|
|
|
|
// Required for FFmpeg mediacodec
|
|
|
|
#include <libavcodec/jni.h>
|
|
|
|
|
|
|
|
static JavaVM *s_java_vm; |
|
|
|
static jclass s_native_library_class; |
|
|
|
@ -429,6 +430,7 @@ namespace Common::Android { |
|
|
|
|
|
|
|
jint JNI_OnLoad(JavaVM *vm, void *reserved) { |
|
|
|
s_java_vm = vm; |
|
|
|
av_jni_set_java_vm(vm, NULL); |
|
|
|
|
|
|
|
JNIEnv *env; |
|
|
|
if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION) != JNI_OK) |
|
|
|
|