• 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
.github Loading commit data...
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...