mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-26 20:41:46 +08:00
Update pkg/driver/camera/camera_linux.go
Co-authored-by: Eric Daniels <eric@erdaniels.com>
This commit is contained in:

committed by
Eric Daniels

parent
09c31a264c
commit
14bfaa5dbd
@@ -113,8 +113,7 @@ func discover(discovered map[string]struct{}, pattern string) {
|
||||
priority = driver.PriorityHigh
|
||||
}
|
||||
|
||||
name := ""
|
||||
busInfo := ""
|
||||
var name, busInfo string
|
||||
if webcamCam, err := webcam.Open(cam.path); err == nil {
|
||||
name, _ = webcamCam.GetName()
|
||||
busInfo, _ = webcamCam.GetBusInfo()
|
||||
|
Reference in New Issue
Block a user