diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index ce94cf19..11043ef2 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -151,8 +151,8 @@ func main() { config.Output = revid.File case "Http": config.Output = revid.Http - case "NativeRtmp": - config.Output = revid.NativeRtmp + case "Rtmp": + config.Output = revid.Rtmp case "FfmpegRtmp": config.Output = revid.FfmpegRtmp case "": diff --git a/revid/config.go b/revid/config.go index 0f190f0e..5fed1ee0 100644 --- a/revid/config.go +++ b/revid/config.go @@ -80,7 +80,7 @@ const ( QuantizationOff Yes No - NativeRtmp + Rtmp FfmpegRtmp ) @@ -172,7 +172,7 @@ func (c *Config) Validate(r *Revid) error { switch c.Output { case File: - case NativeRtmp, FfmpegRtmp: + case Rtmp, FfmpegRtmp: if c.RtmpUrl == "" { r.Log(Info, "No RTMP URL: falling back to HTTP") c.Output = Http diff --git a/revid/revid.go b/revid/revid.go index 29ac89f7..18f5111a 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -158,7 +158,7 @@ func (r *Revid) reset(config Config) error { return err } r.destination = s - case NativeRtmp: + case Rtmp: s, err := newRtmpSender(config.RtmpUrl, rtmpConnectionTimout, rtmpConnectionMaxTries, r.Log) if err != nil { return err