libs: surface: cast to uintptr_t pointer
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 27 Feb 2018 12:10:09 +0000 (06:10 -0600)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 27 Feb 2018 16:02:14 +0000 (10:02 -0600)
According to Debian package auto-building, uintptr_t is not an
unsigned long in i386 arch, raising an "incompatible pointer type"
error.

This patch adds a casting for compiler's satisfaction in i386.

gst-libs/gst/vaapi/gstvaapisurface.c

index 4c4bbee..528dd8c 100644 (file)
@@ -268,7 +268,7 @@ gst_vaapi_surface_create_from_buffer_proxy (GstVaapiSurface * surface,
     extbuf.pitches[i] = GST_VIDEO_INFO_PLANE_STRIDE (vip, i);
     extbuf.offsets[i] = GST_VIDEO_INFO_PLANE_OFFSET (vip, i);
   }
-  extbuf.buffers = &extbuf_handle;
+  extbuf.buffers = (uintptr_t *) & extbuf_handle;
   extbuf.num_buffers = 1;
   extbuf.flags = 0;
   extbuf.private_data = NULL;