[Android] libvlcjni: fix warning

Thomas Guillem git at videolan.org
Wed May 27 17:00:11 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed May 27 14:55:22 2015 +0200| [42324e930876e9108fa4646cc7d461d3f882a895] | committer: Thomas Guillem

libvlcjni: fix warning

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

 libvlc/jni/libvlcjni-mediaplayer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvlc/jni/libvlcjni-mediaplayer.c b/libvlc/jni/libvlcjni-mediaplayer.c
index 13941eb..d5fa9ae 100644
--- a/libvlc/jni/libvlcjni-mediaplayer.c
+++ b/libvlc/jni/libvlcjni-mediaplayer.c
@@ -290,7 +290,7 @@ Java_org_videolan_libvlc_MediaPlayer_stop(JNIEnv *env, jobject thiz)
         for(int i = 0; i < (sizeof(mp_media_events) / sizeof(*mp_media_events)); i++)
             libvlc_event_detach(ev_media, mp_media_events[i], vlc_event_callback, NULL);
         libvlc_media_release(p_md);
-        libvlc_media_player_set_media(p_obj->u.p_md, NULL);
+        libvlc_media_player_set_media(p_obj->u.p_mp, NULL);
     }
 
     libvlc_media_player_stop(p_obj->u.p_mp);



More information about the Android mailing list