Martin Storsjo : qcap: Fix compilation with older videodev2.h.
Alexandre Julliard
julliard at winehq.org
Mon Apr 29 16:08:50 CDT 2019
Module: wine
Branch: master
Commit: 2c42d5ee4d98e4de7316dd56e56ec273d21ff2e0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2c42d5ee4d98e4de7316dd56e56ec273d21ff2e0
Author: Martin Storsjo <martin at martin.st>
Date: Sat Apr 27 22:07:00 2019 +0300
qcap: Fix compilation with older videodev2.h.
Older videodev2.h lack the V4L2_CAP_DEVICE_CAPS define and
the device_caps field in the v4l2_capability struct.
Signed-off-by: Martin Storsjo <martin at martin.st>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qcap/v4l.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index dcc5925..f0875f7 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -577,8 +577,10 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
goto error;
}
+#ifdef V4L2_CAP_DEVICE_CAPS
if (caps.capabilities & V4L2_CAP_DEVICE_CAPS)
caps.capabilities = caps.device_caps;
+#endif
if (!(caps.capabilities & V4L2_CAP_VIDEO_CAPTURE))
{
More information about the wine-cvs
mailing list