mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-06 14:09:58 +00:00
fix mediacodec?
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
#include "video_core/rasterizer_interface.h"
|
#include "video_core/rasterizer_interface.h"
|
||||||
#include "common/android/multiplayer/multiplayer.h"
|
#include "common/android/multiplayer/multiplayer.h"
|
||||||
#include <network/network.h>
|
#include <network/network.h>
|
||||||
|
// Required for FFmpeg mediacodec
|
||||||
|
#include <libavcodec/jni.h>
|
||||||
|
|
||||||
static JavaVM *s_java_vm;
|
static JavaVM *s_java_vm;
|
||||||
static jclass s_native_library_class;
|
static jclass s_native_library_class;
|
||||||
@@ -429,6 +430,7 @@ namespace Common::Android {
|
|||||||
|
|
||||||
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||||
s_java_vm = vm;
|
s_java_vm = vm;
|
||||||
|
av_jni_set_java_vm(vm, NULL);
|
||||||
|
|
||||||
JNIEnv *env;
|
JNIEnv *env;
|
||||||
if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION) != JNI_OK)
|
if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION) != JNI_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user