mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-09 02:43:44 -04:00
fix mediacodec?
This commit is contained in:
parent
84740190e7
commit
20be0d06f4
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue