Commit e65b65e0 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

jni: myVm can now be static

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2351ab40
......@@ -28,9 +28,6 @@
#define LOG_TAG "VLC/JNI/MediaList"
#include "log.h"
/** Unique Java VM instance, as defined in libvlcjni.c */
extern JavaVM *myVm;
struct stopped_monitor {
pthread_mutex_t doneMutex;
pthread_cond_t doneCondVar;
......
......@@ -115,7 +115,7 @@ static void releaseMediaPlayer(JNIEnv *env, jobject thiz)
* Note: It's okay to use a static variable for the VM pointer since there
* can only be one instance of this shared library in a single VM
*/
JavaVM *myVm;
static JavaVM *myVm;
static jobject eventHandlerInstance = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment