revid: removed unused consts

This commit is contained in:
saxon 2019-01-13 17:10:17 +10:30
parent af6c8d875f
commit 9365c4a1de
1 changed files with 12 additions and 22 deletions

View File

@ -51,25 +51,15 @@ import (
// Misc constants // Misc constants
const ( const (
clipDuration = 1 * time.Second clipDuration = 1 * time.Second
mp2tPacketSize = 188 // MPEG-TS packet size
mp2tMaxPackets = int(clipDuration * 2016 / time.Second) // # first multiple of 7 and 8 greater than 2000
ringBufferSize = 10000 ringBufferSize = 10000
ringBufferElementSize = 150000 ringBufferElementSize = 150000
writeTimeout = 10 * time.Millisecond writeTimeout = 10 * time.Millisecond
readTimeout = 10 * time.Millisecond readTimeout = 10 * time.Millisecond
httpTimeout = 5 * time.Second
bitrateTime = 1 * time.Minute bitrateTime = 1 * time.Minute
mjpegParserInChanLen = 100000
ffmpegPath = "/usr/local/bin/ffmpeg" ffmpegPath = "/usr/local/bin/ffmpeg"
rtmpConnectionTimout = 10 rtmpConnectionTimeout = 10
outputChanSize = 1000
cameraRetryPeriod = 5 * time.Second
sendFailedDelay = 5 * time.Millisecond sendFailedDelay = 5 * time.Millisecond
maxSendFailedErrorCount = 500
clipSizeThreshold = 11
rtmpConnectionMaxTries = 5 rtmpConnectionMaxTries = 5
raspividNoOfTries = 3
sendingWaitTime = 5 * time.Millisecond
pkg = "revid:" pkg = "revid:"
) )
@ -230,7 +220,7 @@ func (r *Revid) reset(config Config) error {
} }
r.destination[outNo] = s r.destination[outNo] = s
case Rtmp: case Rtmp:
s, err := newRtmpSender(config.RtmpUrl, rtmpConnectionTimout, rtmpConnectionMaxTries, r.config.Logger.Log) s, err := newRtmpSender(config.RtmpUrl, rtmpConnectionTimeout, rtmpConnectionMaxTries, r.config.Logger.Log)
if err != nil { if err != nil {
return err return err
} }