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
Casanowow Life for love
VLC-Android
Commits
5493e508
Commit
5493e508
authored
Apr 22, 2012
by
Sébastien Toque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close java AudioTrack too
parent
85f722d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
vlc-android/jni/aout.c
vlc-android/jni/aout.c
+16
-0
No files found.
vlc-android/jni/aout.c
View file @
5493e508
...
...
@@ -171,6 +171,22 @@ void aout_close(void *opaque)
JNIEnv
*
p_env
;
(
*
myVm
)
->
AttachCurrentThread
(
myVm
,
&
p_env
,
NULL
);
// Call the close function.
jclass
cls
=
(
*
p_env
)
->
GetObjectClass
(
p_env
,
p_sys
->
j_libVlc
);
jmethodID
methodIdCloseAout
=
(
*
p_env
)
->
GetMethodID
(
p_env
,
cls
,
"closeAout"
,
"()V"
);
if
(
!
methodIdCloseAout
)
LOGE
(
"Method closeAout() could not be found!"
);
(
*
p_env
)
->
CallVoidMethod
(
p_env
,
p_sys
->
j_libVlc
,
methodIdCloseAout
);
if
((
*
p_env
)
->
ExceptionCheck
(
p_env
))
{
LOGE
(
"Unable to close audio player!"
);
#ifndef NDEBUG
(
*
p_env
)
->
ExceptionDescribe
(
p_env
);
#endif
(
*
p_env
)
->
ExceptionClear
(
p_env
);
}
(
*
p_env
)
->
DeleteGlobalRef
(
p_env
,
p_sys
->
buffer
);
(
*
myVm
)
->
DetachCurrentThread
(
myVm
);
free
(
p_sys
);
...
...
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