mirror of
https://github.com/datarhei/core.git
synced 2025-10-23 16:03:14 +08:00
Add GoSRT & improvements (repo-merge)
Commits (Ingo Oppermann): - Add experimental SRT connection stats and logs - Hide /config/reload endpoint in reade-only mode - Add SRT server - Create v16 in go.mod - Fix data races, tests, lint, and update dependencies - Add trailing slash for routed directories (datarhei/restreamer#340) - Allow relative URLs in content in static routes Co-Authored-By: Ingo Oppermann <57445+ioppermann@users.noreply.github.com>
This commit is contained in:
@@ -10,8 +10,6 @@ import (
|
||||
|
||||
// DevicesV4L returns a list of available V4L devices
|
||||
func DevicesV4L() ([]HWDevice, error) {
|
||||
devices := []HWDevice{}
|
||||
|
||||
buf := bytes.NewBuffer(nil)
|
||||
|
||||
cmd := exec.Command("v4l2-ctl", "--list-devices")
|
||||
@@ -19,7 +17,7 @@ func DevicesV4L() ([]HWDevice, error) {
|
||||
cmd.Stdout = buf
|
||||
cmd.Run()
|
||||
|
||||
devices = parseV4LDevices(buf)
|
||||
devices := parseV4LDevices(buf)
|
||||
|
||||
return devices, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user