mirror of https://github.com/opencv/opencv.git
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: Todor Tomov <todor.tomov@linaro.org>pull/12405/head
parent
0f0a82b619
commit
9988e1b6ee
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue