[PATCH 1/2] avicap32: verify v4l devices can capture before returning them
23 Apr
2019
23 Apr
'19
1:15 a.m.
/dev/video* device nodes aren't all capture devices, and returning those that aren't results in devenum reporting them to applications, which will later fail when opening them with IMoniker::BindToObject(). avicap32 already tries to call VIDIOC_QUERYCAP to check whether it's dealing with a v4l device, but it does not check a successful result any further. Get it to verify the device supports the V4L2_CAP_VIDEO_CAPTURE flag, like we do in qcap/v4l.c. Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com> --- dlls/avicap32/avicap32_main.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
2516
Age (days ago)
2516
Last active (days ago)
0 comments
1 participants
participants (1)
-
Damjan Jovanovic