qcap: Use the v4l2 device_caps field if supported.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7c743a492d
commit
a16a190f63
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue