From ebf99f70458d1d49034b5d3e514bd90441c4f30f Mon Sep 17 00:00:00 2001 From: Martin <14993038+RivenSkaye@users.noreply.github.com> Date: Thu, 18 Apr 2024 08:20:05 +0200 Subject: [PATCH] Typo in fix? It seems like something happened that caused the check to enter early return both when cameras were found _and_ when none were found --- nokhwa-bindings-windows/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nokhwa-bindings-windows/src/lib.rs b/nokhwa-bindings-windows/src/lib.rs index 2ae75a8..08ba4a8 100644 --- a/nokhwa-bindings-windows/src/lib.rs +++ b/nokhwa-bindings-windows/src/lib.rs @@ -276,7 +276,7 @@ pub mod wmf { let mut device_list = vec![]; // return early if we have no devices connected - if count >= 0 { + if count == 0 { return Ok(device_list) }