From 353d2cfcc7cc9eea8b324b9098289ecf5beb515a Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Sat, 30 Jun 2018 21:50:55 +0930 Subject: [PATCH] revid,revid-cli: remove non-functional RTP mention and add MPEGTS config option --- cmd/revid-cli/main.go | 6 ++---- revid/config.go | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 098ab4fe..6e79c553 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -129,8 +129,6 @@ func main() { switch *configFlags[inputPtr] { case "Raspivid": config.Input = revid.Raspivid - case "Rtp": - config.Input = revid.Rtp case "File": config.Input = revid.File case "": @@ -173,8 +171,8 @@ func main() { switch *configFlags[packetizationPtr] { case "None": config.Packetization = revid.None - case "Rtp": - config.Packetization = revid.Rtp + case "Mpegts": + config.Packetization = revid.Mpegts case "Flv": config.Packetization = revid.Flv case "": diff --git a/revid/config.go b/revid/config.go index 5fed1ee0..066ce9f6 100644 --- a/revid/config.go +++ b/revid/config.go @@ -65,7 +65,6 @@ type Config struct { const ( NothingDefined = iota Raspivid - Rtp H264Codec File Http @@ -126,7 +125,6 @@ func (c *Config) Validate(r *Revid) error { } switch c.Input { - case Rtp: case Raspivid: case File: case NothingDefined: