mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-06 00:56:50 +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
|
priority = driver.PriorityHigh
|
||||||
}
|
}
|
||||||
|
|
||||||
name := ""
|
var name, busInfo string
|
||||||
busInfo := ""
|
|
||||||
if webcamCam, err := webcam.Open(cam.path); err == nil {
|
if webcamCam, err := webcam.Open(cam.path); err == nil {
|
||||||
name, _ = webcamCam.GetName()
|
name, _ = webcamCam.GetName()
|
||||||
busInfo, _ = webcamCam.GetBusInfo()
|
busInfo, _ = webcamCam.GetBusInfo()
|
||||||
|
Reference in New Issue
Block a user