Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
eda75b40
Commit
eda75b40
authored
Jun 30, 2007
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
helper define added
parent
069b02ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
bindings/java/src/callback-jni.cc
bindings/java/src/callback-jni.cc
+1
-2
bindings/java/src/utils.h
bindings/java/src/utils.h
+5
-0
No files found.
bindings/java/src/callback-jni.cc
View file @
eda75b40
...
...
@@ -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
);
}
bindings/java/src/utils.h
View file @
eda75b40
...
...
@@ -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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment