[Android] MediaList: fix crash
Edward Wang
git at videolan.org
Thu Aug 29 13:55:30 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Aug 29 13:48:04 2013 +0200| [5643352e467e7b43846e7145d0c937c78f83a733] | committer: Edward Wang
MediaList: fix crash
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5643352e467e7b43846e7145d0c937c78f83a733
---
vlc-android/jni/libvlcjni-medialist.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/jni/libvlcjni-medialist.c b/vlc-android/jni/libvlcjni-medialist.c
index 3628f9e..079bff2 100644
--- a/vlc-android/jni/libvlcjni-medialist.c
+++ b/vlc-android/jni/libvlcjni-medialist.c
@@ -256,9 +256,9 @@ void Java_org_videolan_libvlc_MediaList_add(JNIEnv *env, jobject thiz, jobject l
const char* p_mrl = (*env)->GetStringUTFChars(env, mrl, NULL);
libvlc_media_t *p_md = libvlc_media_new_location((libvlc_instance_t*)(intptr_t)getLong(env, libvlcInstance, "mLibVlcInstance"), p_mrl);
if (!noOmx) {
- jclass cls = (*env)->GetObjectClass(env, thiz);
+ jclass cls = (*env)->GetObjectClass(env, libvlcInstance);
jmethodID methodId = (*env)->GetMethodID(env, cls, "useIOMX", "()Z");
- if ((*env)->CallBooleanMethod(env, thiz, methodId)) {
+ if ((*env)->CallBooleanMethod(env, libvlcInstance, methodId)) {
/*
* Set higher caching values if using iomx decoding, since some omx
* decoders have a very high latency, and if the preroll data isn't
More information about the Android
mailing list