[Android] jni: remove duplicate call
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:59:05 2012 +0100| [89275903ca3a2b540fc86177c972f5ec72365dd2] | committer: Ludovic Fauvet
jni: remove duplicate call
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=89275903ca3a2b540fc86177c972f5ec72365dd2
---
vlc-android/jni/libvlcjni.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index c15f6d3..2f075d8 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -185,11 +185,6 @@ static libvlc_media_list_player_t *getMediaListPlayer(JNIEnv *env, jobject thiz)
return (libvlc_media_list_player_t*)(intptr_t)getLong(env, thiz, "mMediaListPlayerInstance");
}
-static void unsetMediaPlayer(JNIEnv *env, jobject thiz)
-{
- setLong(env, thiz, "mInternalMediaPlayerInstance", (jlong)0);
-}
-
static void releaseMediaPlayer(JNIEnv *env, jobject thiz)
{
libvlc_media_list_player_t* p_mlp = getMediaListPlayer(env, thiz);
@@ -199,7 +194,6 @@ static void releaseMediaPlayer(JNIEnv *env, jobject thiz)
libvlc_media_list_player_release(p_mlp);
/* libvlc_media_list_player_release frees the media player, so
* 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