mirror of https://bitbucket.org/ausocean/av.git
Merged in check-urls-len (pull request #499)
vidforward/file.go: check length of urls on load Approved-by: David Sutton
This commit is contained in:
commit
05a0ba79df
|
@ -38,6 +38,9 @@ import (
|
||||||
var loggingLevel = logging.Info
|
var loggingLevel = logging.Info
|
||||||
|
|
||||||
func newRevid(log logging.Logger, urls []string) (*revid.Revid, error) {
|
func newRevid(log logging.Logger, urls []string) (*revid.Revid, error) {
|
||||||
|
if len(urls) <= 0 {
|
||||||
|
return nil, fmt.Errorf("cannot have %d URLs", len(urls))
|
||||||
|
}
|
||||||
var outputs []uint8
|
var outputs []uint8
|
||||||
for _ = range urls {
|
for _ = range urls {
|
||||||
outputs = append(outputs, config.OutputRTMP)
|
outputs = append(outputs, config.OutputRTMP)
|
||||||
|
|
Loading…
Reference in New Issue