[Android] jni: fix a crash/freeze when reloading libvlc

Ludovic Fauvet git at videolan.org
Thu Dec 6 18:01:21 CET 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Dec  6 17:56:29 2012 +0100| [73c8bd4ef27198b3de793c9f2e43d65726484028] | committer: Ludovic Fauvet

jni: fix a crash/freeze when reloading libvlc

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=73c8bd4ef27198b3de793c9f2e43d65726484028
---

 vlc-android/jni/libvlcjni.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index f24e5a4..c15f6d3 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -201,6 +201,7 @@ static void releaseMediaPlayer(JNIEnv *env, jobject thiz)
          * we don't free it ourselves. */
         unsetMediaPlayer(env, thiz);
         setLong(env, thiz, "mInternalMediaPlayerInstance", 0);
+        setLong(env, thiz, "mMediaListPlayerInstance", 0);
     }
 }
 



More information about the Android mailing list