mirror of https://bitbucket.org/ausocean/av.git
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:
parent
1ec23badcc
commit
5637d2b015
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue