-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devices with no capture formats cause panic #8
Comments
I'll take a look at this tomorrow. |
This is a quick bandaid to fix #8. For the next version, we'll remove the io::Result wrapper and just return the vec, which is allowed to be empty. Signed-off-by: Christopher N. Hesse <raymanfx@gmail.com>
Hmm, thinking about this some more, I believe the Linux v4l2 API design is a bit lacking here. [1] https://www.kernel.org/doc/html/v4.14/media/uapi/v4l/vidioc-enum-fmt.html |
This is a quick bandaid to fix #8. For the next version, we'll remove the io::Result wrapper and just return the vec, which is allowed to be empty. Signed-off-by: Christopher N. Hesse <raymanfx@gmail.com>
Fixed in 176f88d (released as part of 0.9.2). |
Minimal reproducible example:
Output:
Where
/dev/video2
is av4l2loopback
device with no capture formats.The text was updated successfully, but these errors were encountered: