[PATCH 2/2] qcap: Use the v4l2 device_caps field if supported.

Zebediah Figura z.figura12 at gmail.com
Sat Apr 20 12:06:56 CDT 2019


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/qcap/v4l.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index 32c2c02512..dcc5925164 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -577,6 +577,9 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
         goto error;
     }
 
+    if (caps.capabilities & V4L2_CAP_DEVICE_CAPS)
+        caps.capabilities = caps.device_caps;
+
     if (!(caps.capabilities & V4L2_CAP_VIDEO_CAPTURE))
     {
         WARN("Device does not support single-planar video capture.\n");
-- 
2.21.0




More information about the wine-devel mailing list