Skip to content

Commit

Permalink
Add webcam close to linux camera discover (#568)
Browse files Browse the repository at this point in the history
Add webcam close to linux discover
  • Loading branch information
seanavery committed Apr 30, 2024
1 parent ae63fa6 commit 8fb8d65
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 8fb8d65

Please sign in to comment.