[Android] LibVLC: udpdate with last API change
Thomas Guillem
git at videolan.org
Wed Jul 20 13:31:31 CEST 2016
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 20 13:31:16 2016 +0200| [1b255e18b0ed5d7b5a72f844e371123b321e1486] | committer: Thomas Guillem
LibVLC: udpdate with last API change
> https://code.videolan.org/videolan/vlc-android/commit/1b255e18b0ed5d7b5a72f844e371123b321e1486
---
libvlc/jni/libvlcjni-mediadiscoverer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libvlc/jni/libvlcjni-mediadiscoverer.c b/libvlc/jni/libvlcjni-mediadiscoverer.c
index 8a82352..5cf0654 100644
--- a/libvlc/jni/libvlcjni-mediadiscoverer.c
+++ b/libvlc/jni/libvlcjni-mediadiscoverer.c
@@ -112,7 +112,7 @@ Java_org_videolan_libvlc_MediaDiscoverer_nativeList(JNIEnv *env, jobject thiz,
vlcjni_object *p_lib_obj = VLCJniObject_getInstance(env, libVlc);
libvlc_instance_t *p_libvlc = p_lib_obj->u.p_libvlc;
libvlc_media_discoverer_description **pp_services = NULL;
- unsigned int i_nb_services = 0;
+ ssize_t i_nb_services = 0;
jobjectArray array;
if (!p_lib_obj)
@@ -121,7 +121,7 @@ Java_org_videolan_libvlc_MediaDiscoverer_nativeList(JNIEnv *env, jobject thiz,
i_nb_services =
libvlc_media_discoverer_list_get( p_libvlc, i_category,
&pp_services);
- if (i_nb_services == 0)
+ if (i_nb_services <= 0)
return NULL;
array = (*env)->NewObjectArray(env, i_nb_services,
@@ -130,7 +130,7 @@ Java_org_videolan_libvlc_MediaDiscoverer_nativeList(JNIEnv *env, jobject thiz,
if (!array)
goto error;
- for (int i = 0; i < i_nb_services; ++i)
+ for (size_t i = 0; i < (size_t) i_nb_services; ++i)
{
jobject jservice = service_to_object(env, pp_services[i]);
More information about the Android
mailing list