[vlc-commits] hw: vaapi: fix loop condition
Thomas Guillem
git at videolan.org
Sat Dec 9 17:11:46 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Dec 9 17:09:34 2017 +0100| [0af7adbca81a88218720851b803a5f9b1fcc8937] | committer: Thomas Guillem
hw: vaapi: fix loop condition
(cherry picked from commit 7bfd1d18c33a15ea9d5eec77ef7dd9f8e5d1cd17)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0af7adbca81a88218720851b803a5f9b1fcc8937
---
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