[vlc-commits] hw: vaapi: fix VANativeDisplay cast

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


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Dec  9 17:06:29 2017 +0100| [1dece20aa807391d902c36275c0bea8eff03b443] | committer: Thomas Guillem

hw: vaapi: fix VANativeDisplay cast

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

 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 20de261770..9d69f2d365 100644
--- a/modules/hw/vaapi/vlc_vaapi.c
+++ b/modules/hw/vaapi/vlc_vaapi.c
@@ -153,7 +153,7 @@ vlc_vaapi_InitializeInstanceDRM(vlc_object_t *o,
         {
             struct vlc_vaapi_instance *va_inst =
                 vlc_vaapi_InitializeInstance(o, dpy,
-                                             (VANativeDisplay *)(intptr_t)drm_fd,
+                                             (VANativeDisplay)(intptr_t)drm_fd,
                                              native_drm_destroy_cb);
             if (va_inst)
             {



More information about the vlc-commits mailing list