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

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


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

hw: vaapi: fix VANativeDisplay cast

(cherry picked from commit 1dece20aa807391d902c36275c0bea8eff03b443)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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