[vlc-commits] android: util: use ARRAY_SIZE if possible

Alexandre Janniaux git at videolan.org
Thu Feb 13 12:03:40 CET 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Feb  7 13:19:01 2020 +0100| [8dd471c74857948c49d37ffb44206c50c5ea7485] | committer: Jean-Baptiste Kempf

android: util: use ARRAY_SIZE if possible

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8dd471c74857948c49d37ffb44206c50c5ea7485
---

 modules/video_output/android/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/android/utils.c b/modules/video_output/android/utils.c
index 40f81f1f99..25ac24676f 100644
--- a/modules/video_output/android/utils.c
+++ b/modules/video_output/android/utils.c
@@ -186,7 +186,7 @@ NativeSurface_fromSurface(JNIEnv *p_env, jobject jsurf)
         return NULL;
     p_ns->p_surface_handle = p_surface_handle;
 
-    for (size_t i = 0; i < sizeof(libs) / sizeof(*libs); i++)
+    for (size_t i = 0; i < ARRAY_SIZE(libs); i++)
     {
         void *p_dl_handle = NativeSurface_Load(libs[i], p_ns);
         if (p_dl_handle)



More information about the vlc-commits mailing list