revid-cli: added sendRetry flag so that we can have the option to either keep sending on failure, or just drop data.

This commit is contained in:
saxon 2019-01-22 15:53:41 +10:30
parent 1ec23badcc
commit 5637d2b015
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,7 @@ func handleFlags() revid.Config {
rtpAddrPtr = flag.String("RtpAddr", "", "Rtp destination address: <IP>:<port> (port is generally 6970-6999)")
logPathPtr = flag.String("LogPath", defaultLogPath, "The log path")
configFilePtr = flag.String("ConfigFile", "", "NetSender config file")
sendRetryPtr = flag.Bool("send-retry", false, "If true, we retry send on a failure, otherwise drop the data.")
)
flag.Parse()
@ -254,6 +255,7 @@ func handleFlags() revid.Config {
cfg.Quantization = *quantizationPtr
cfg.IntraRefreshPeriod = *intraRefreshPeriodPtr
cfg.RtpAddress = *rtpAddrPtr
cfg.SendRetry = *sendRetryPtr
return cfg
}