[vlc-commits] hw: vaapi: fix loop condition

Thomas Guillem git at videolan.org
Sat Dec 9 17:09:46 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Dec  9 17:09:34 2017 +0100| [7bfd1d18c33a15ea9d5eec77ef7dd9f8e5d1cd17] | committer: Thomas Guillem

hw: vaapi: fix loop condition

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

 modules/hw/vaapi/vlc_vaapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/vaapi/vlc_vaapi.c b/modules/hw/vaapi/vlc_vaapi.c
index 9d69f2d365..6af4932dd5 100644
--- a/modules/hw/vaapi/vlc_vaapi.c
+++ b/modules/hw/vaapi/vlc_vaapi.c
@@ -142,7 +142,7 @@ vlc_vaapi_InitializeInstanceDRM(vlc_object_t *o,
         drm_device_paths_count = ARRAY_SIZE(default_drm_device_paths);
     }
 
-    for (size_t i = 0; drm_device_paths_count; i++)
+    for (size_t i = 0; i < drm_device_paths_count; i++)
     {
         int drm_fd = vlc_open(drm_device_paths[i], O_RDWR);
         if (drm_fd < 0)



More information about the vlc-commits mailing list