From 97acff1f692b8c6c43152480a41eb54a5750817a Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 28 Dec 2019 20:27:53 +0000 Subject: Initial revision --- .../patches/libva-vdpau-driver_videodev2_h.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libva-vdpau-driver/build/patches/libva-vdpau-driver_videodev2_h.patch (limited to 'libva-vdpau-driver/build') diff --git a/libva-vdpau-driver/build/patches/libva-vdpau-driver_videodev2_h.patch b/libva-vdpau-driver/build/patches/libva-vdpau-driver_videodev2_h.patch new file mode 100644 index 00000000..b69ea249 --- /dev/null +++ b/libva-vdpau-driver/build/patches/libva-vdpau-driver_videodev2_h.patch @@ -0,0 +1,26 @@ +https://bugs.gentoo.org/689530 + +libva commit 93c52a17b8d2 ("va_backend: remove unneeded +linux/videodev2.h include") removed an include that provided the +prototype of v4l2_format among other v4l2_* structs. + +Without this or a forward declaration of 'struct v4l2_format', the prototype +and definition of vdpau_CreateSurfaceFromV4L2Buf() (which has a 'struct +v4l2_format *' parameter) are seen as conflicting. + +Just include the removed header where we need it. + +diff --git a/src/vdpau_driver.h b/src/vdpau_driver.h +index 6286d16..54d37fb 100644 +--- a/src/vdpau_driver.h ++++ b/src/vdpau_driver.h +@@ -21,6 +21,8 @@ + #ifndef VDPAU_DRIVER_H + #define VDPAU_DRIVER_H + ++#include ++ + #include + #include "vaapi_compat.h" + #include "vdpau_gate.h" + -- cgit v1.2.3-65-gdbad