rtp: assert that udp with no packetization works

This commit is contained in:
saxon 2018-11-21 20:43:17 +10:30
parent efe2333683
commit 92294aed70
2 changed files with 2 additions and 1 deletions

View File

@ -186,6 +186,7 @@ func (c *Config) Validate(r *Revid) error {
switch c.Output { switch c.Output {
case File: case File:
case Rtp: case Rtp:
case Udp:
case Rtmp, FfmpegRtmp: case Rtmp, FfmpegRtmp:
if c.RtmpUrl == "" { if c.RtmpUrl == "" {
c.Logger.Log(smartlogger.Info, pkg+"no RTMP URL: falling back to HTTP") c.Logger.Log(smartlogger.Info, pkg+"no RTMP URL: falling back to HTTP")

View File

@ -228,7 +228,7 @@ func (r *Revid) reset(config Config) error {
r.destination = s r.destination = s
case Http: case Http:
r.destination = newHttpSender(r.ns, r.config.Logger.Log) r.destination = newHttpSender(r.ns, r.config.Logger.Log)
case Rtp: case Rtp, Udp:
s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log) s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log)
if err != nil { if err != nil {
return err return err