Skip to content

Commit f38e6d9

Browse files
authored
Merge pull request #1041 from tychedelia/webcam-fix
Use non-none format for webcam format request.
2 parents 4347507 + cb05d1f commit f38e6d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nannou_webcam/src/native.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ fn nokhwa_initialize_blocking() {
8484
}
8585

8686
fn query_device_formats(index: &CameraIndex) -> Vec<WebcamSupportedFormat> {
87-
let requested = RequestedFormat::new::<RgbFormat>(RequestedFormatType::None);
87+
let requested =
88+
RequestedFormat::new::<RgbFormat>(RequestedFormatType::AbsoluteHighestFrameRate);
8889
let mut camera = match Camera::new(index.clone(), requested) {
8990
Ok(c) => c,
9091
Err(err) => {

0 commit comments

Comments
 (0)