Add webcam close to linux camera discover (#568)

Add webcam close to linux discover
This commit is contained in:
Sean Pollock
2024-04-30 10:14:26 -04:00
committed by GitHub
parent ae63fa65bf
commit 8fb8d65764
+1
View File
@@ -125,6 +125,7 @@ func discover(discovered map[string]struct{}, pattern string) {
var name, busInfo string
if webcamCam, err := webcam.Open(cam.path); err == nil {
defer webcamCam.Close()
name, _ = webcamCam.GetName()
busInfo, _ = webcamCam.GetBusInfo()
}