-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
nokwha::query(ApiBackend::MediaFoundation) causes panic on Windows w/ no cam plugged in #192
Comments
I see now that this issue was fixed months ago in nokhwa-bindings-windows. However, when |
On returning to this today, I'd really like to be able to compile from source in windows to be able to use the most recent code. However, the build for
|
|
Here's my cargo.toml (the project is to try to display the camera feed in [package]
name = "display-video"
version = "0.1.0"
edition = "2021"
[dependencies]
# egui
eframe = { version = "0.30.0", features = ["default"] }
epaint = { version = "0.30.0" }
# nokhwa
nokhwa = { version = "0.10.7", features = ["input-msmf"]}
# Logging
env_logger = { version = "0.11.5", default-features = false, features = [
"auto-color",
"humantime",
] }
log = "0.4.22" after running |
Also, I wanted to know whether you would be open to a PR for fixing the |
On windows, desktop PC, no builtin camera, I ran the following code:
When i plug my usb webcam in, i get the following output:
When no camera is plugged in, the windows bindings panic.
Seems like the windows bindings may need to be updated to handle a 'no-camera' state?
The text was updated successfully, but these errors were encountered: