[vlc-commits] vaapi: fix invalid function pointer conversion

Rémi Denis-Courmont git at videolan.org
Tue Jan 15 17:43:32 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 15 18:41:44 2019 +0200| [c84850f73a07b31df6a3a8b9b6f9814d69f51e36] | committer: Rémi Denis-Courmont

vaapi: fix invalid function pointer conversion

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

 modules/video_output/opengl/converter_vaapi.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/converter_vaapi.c b/modules/video_output/opengl/converter_vaapi.c
index a0dfca329d..a2f8f34dd8 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -306,6 +306,11 @@ Close(vlc_object_t *obj)
     free(tc->priv);
 }
 
+static int strcasecmp_void(const void *a, const void *b)
+{
+    return strcasecmp(a, b);
+}
+
 static int
 tc_va_check_interop_blacklist(opengl_tex_converter_t *tc, VADisplay *vadpy)
 {
@@ -325,7 +330,7 @@ tc_va_check_interop_blacklist(opengl_tex_converter_t *tc, VADisplay *vadpy)
 
     const char *found = bsearch(vendor_prefix, blacklist_prefix,
                                 ARRAY_SIZE(blacklist_prefix),
-                                BL_SIZE_MAX, (void *) strcasecmp);
+                                BL_SIZE_MAX, strcasecmp_void);
     if (found != NULL)
     {
         msg_Warn(tc->gl, "The '%s' driver is blacklisted: no interop", found);



More information about the vlc-commits mailing list