mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
08d4456339
At least one V4L2 device reports a menu control when queried with QUERYCTRL yet does not report supporting a single value in its legal range when queried with QUERYMENU. Such devices are arguably ill-behaved, but the Linux UVC driver takes no special care to ignore such pathological controls, so we have to do it ourselves. Without this patch, a menu control with no valid values would cause v4l2_control_changed to go into an infinite loop, since every S_CTRL request on such pathological control properties would always fail, triggering an additional modification event. By ignoring these properties altogether, we avoid that problem, and the user benefits by not having the UI cluttered by a confusing and useless menu control. |
||
---|---|---|
.. | ||
data/locale | ||
CMakeLists.txt | ||
linux-v4l2.c | ||
v4l2-controls.c | ||
v4l2-controls.h | ||
v4l2-helpers.c | ||
v4l2-helpers.h | ||
v4l2-input.c | ||
v4l2-output.c | ||
v4l2-udev.c | ||
v4l2-udev.h |