From aed8aafdbf236194906d78b6256db5ec40db9cbb Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 22 Jun 2021 02:09:21 +0100 Subject: [PATCH] drm/vaapi: Fix pointer-size confusion The API expects uintptr_t (good!), but we're passing an unsigned long here. Make the conversion explicit. Signed-off-by: Daniel Stone --- libweston/backend-drm/vaapi-recorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/backend-drm/vaapi-recorder.c b/libweston/backend-drm/vaapi-recorder.c index 0a743570c..e09c6dd92 100644 --- a/libweston/backend-drm/vaapi-recorder.c +++ b/libweston/backend-drm/vaapi-recorder.c @@ -1018,7 +1018,7 @@ create_surface_from_fd(struct vaapi_recorder *r, int prime_fd, va_attrib_extbuf.num_planes = 1; va_attrib_extbuf.pitches[0] = stride; va_attrib_extbuf.offsets[0] = 0; - va_attrib_extbuf.buffers = &buffer_fd; + va_attrib_extbuf.buffers = (uintptr_t *) &buffer_fd; va_attrib_extbuf.num_buffers = 1; va_attrib_extbuf.flags = 0; va_attrib_extbuf.private_data = NULL;