Commit eda75b40 authored by Filippo Carone's avatar Filippo Carone

helper define added

parent 069b02ec
......@@ -66,8 +66,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Audio__1install_1callback( JNIEnv
void volumeChangedCallback( struct libvlc_instance_t *p_instance, libvlc_event_t *event, void *user_data )
{
JNIEnv *env;
jvm->AttachCurrentThread( ( void ** ) &env, NULL );
ATTACH_JVM;
env->CallStaticVoidMethod( audioClass, wakeupListenersMethod);
}
......@@ -33,3 +33,8 @@ jlong getInstance ( JNIEnv* , jobject );
libvlc_media_instance_t *input; \
input = libvlc_playlist_get_media_instance( ( libvlc_instance_t *) instance, exception ); \
CHECK_EXCEPTION ;
#define ATTACH_JVM
JNIEnv *env; \
jvm->AttachCurrentThread( ( void ** ) &env, 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