Skip to content

Commit

Permalink
Add webcam close to linux discover
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Apr 26, 2024
1 parent 23d77e2 commit 326e54e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/driver/camera/camera_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 326e54e

Please sign in to comment.