• Todor Tomov's avatar
    cap_v4l: Fix private control enumeration end condition · 9988e1b6
    Todor Tomov authored
    Currently the private control enumeration will be stopped when QUERYCTRL
    returns -EINVAL only. It is possible however that other errors occur.
    
    One particular case is when the v4l2 device doesn't support any controls
    and doesn't implement the QUERYCTRL ioctl. In that case the v4l2
    framework returns -ENOTTY. In that case the current control enumeration
    will go in an endless loop.
    
    To fix this change the control enumeration stop condition. If any errors
    occur, end the control enumeration.
    Signed-off-by: 's avatarTodor Tomov <todor.tomov@linaro.org>
    9988e1b6
Name
Last commit
Last update
..
doc Loading commit data...
include/opencv2 Loading commit data...
misc Loading commit data...
perf Loading commit data...
src Loading commit data...
test Loading commit data...
CMakeLists.txt Loading commit data...