Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
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