blob: 0d92074ced935a3b22421d2e04169eaf860a5c5a (
plain)
1 https://bugs.gentoo.org/689530
2
3 libva commit 93c52a17b8d2 ("va_backend: remove unneeded
4 linux/videodev2.h include") removed an include that provided the
5 prototype of v4l2_format among other v4l2_* structs.
6
7 Without this or a forward declaration of 'struct v4l2_format', the prototype
8 and definition of vdpau_CreateSurfaceFromV4L2Buf() (which has a 'struct
9 v4l2_format *' parameter) are seen as conflicting.
10
11 Just include the removed header where we need it.
12
13 diff --git a/src/vdpau_driver.h b/src/vdpau_driver.h
14 index 6286d16..54d37fb 100644
15 --- a/src/vdpau_driver.h
16 +++ b/src/vdpau_driver.h
17 @@ -21,6 +21,8 @@
18 #ifndef VDPAU_DRIVER_H
19 #define VDPAU_DRIVER_H
20
21 +#include <linux/videodev2.h>
22 +
23 #include <va/va_backend.h>
24 #include "vaapi_compat.h"
25 #include "vdpau_gate.h"
|