l1npengtul / nokhwa

Cross Platform Rust Library for Powerful Webcam/Camera Capture
Apache License 2.0
502 stars 121 forks source link

Fix spelling of AVCaptureDeviceTypeExternalUnknown #83

Closed aprilwade closed 1 year ago

aprilwade commented 1 year ago

The typo caused USB webcams to not be reported by the library. Perhaps the device types should reference the global variables instead of directly using the strings so that typos like this result in linker errors instead of silently failing to find certain categories of cameras? (I'd be willing to create a pull request)

l1npengtul commented 1 year ago

Thank you for your contribution.