[Android] libvlc: fix null meta when file hasn't any tracks.

Thomas Guillem git at videolan.org
Mon Dec 29 11:10:03 CET 2014


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Dec 29 11:06:29 2014 +0100| [3a90f823e7f0efd3cdeab799005ac7bf30a61db7] | committer: Thomas Guillem

libvlc: fix null meta when file hasn't any tracks.

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

 libvlc/jni/libvlcjni-track.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libvlc/jni/libvlcjni-track.c b/libvlc/jni/libvlcjni-track.c
index 7b1dc05..ed13830 100644
--- a/libvlc/jni/libvlcjni-track.c
+++ b/libvlc/jni/libvlcjni-track.c
@@ -132,8 +132,6 @@ jobjectArray read_track_info_internal(JNIEnv *env, jobject thiz, libvlc_media_t*
     libvlc_media_track_t **p_tracks;
 
     int i_nbTracks = libvlc_media_tracks_get(p_m, &p_tracks);
-    if (i_nbTracks == 0)
-        return NULL;
 
     jobjectArray array = (*env)->NewObjectArray(env, i_nbTracks + 1, cls, NULL);
 



More information about the Android mailing list