linux-v4l2: Remove "Leave Unchanged" option
Remove the "Leave Unchanged" option for the input and video format select. This option was primarily added for cases in which the resolution and framerate are set by another program or the capture device itself and the values are not directly supported by the plugin. One major usecase here would be capture devices for tv signals which might be set to a spcific resolution and refresh rate, and might fail to initialize in case any other combination of those settings is forced. In case of the input this option did not make much sense, as the first input is probably the best default option in most cases. For the video format this default is even bad in some cases. If an format emulated by libv4l2 is selected for example, this will usually configure the device to use mjpeg with libv4l2 converting it to some format obs can use. When obs or the source is then restarted and the "Leave Unchanged" is enabled the plugin will fail, because it will only notice that the device is set to mjpeg, without any knowledge about the possibility of letting libv4l2 handle the conversion. Using the first available and supported format is not nescessarily the best choice, but still preferable to some random format that will cause the plugin to not capture at all. Forcing a choice here will hopefully also make the plugin behaviour more predicatable for the user.
Showing
想要评论请 注册 或 登录