|
|
|
@ -40,14 +40,15 @@ type pathManagerParent interface { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type pathManager struct { |
|
|
|
type pathManager struct { |
|
|
|
rtspAddress string |
|
|
|
rtspAddress string |
|
|
|
readTimeout conf.StringDuration |
|
|
|
readTimeout conf.StringDuration |
|
|
|
writeTimeout conf.StringDuration |
|
|
|
writeTimeout conf.StringDuration |
|
|
|
readBufferCount int |
|
|
|
readBufferCount int |
|
|
|
pathConfs map[string]*conf.PathConf |
|
|
|
udpMaxPayloadSize int |
|
|
|
externalCmdPool *externalcmd.Pool |
|
|
|
pathConfs map[string]*conf.PathConf |
|
|
|
metrics *metrics |
|
|
|
externalCmdPool *externalcmd.Pool |
|
|
|
parent pathManagerParent |
|
|
|
metrics *metrics |
|
|
|
|
|
|
|
parent pathManagerParent |
|
|
|
|
|
|
|
|
|
|
|
ctx context.Context |
|
|
|
ctx context.Context |
|
|
|
ctxCancel func() |
|
|
|
ctxCancel func() |
|
|
|
@ -74,6 +75,7 @@ func newPathManager( |
|
|
|
readTimeout conf.StringDuration, |
|
|
|
readTimeout conf.StringDuration, |
|
|
|
writeTimeout conf.StringDuration, |
|
|
|
writeTimeout conf.StringDuration, |
|
|
|
readBufferCount int, |
|
|
|
readBufferCount int, |
|
|
|
|
|
|
|
udpMaxPayloadSize int, |
|
|
|
pathConfs map[string]*conf.PathConf, |
|
|
|
pathConfs map[string]*conf.PathConf, |
|
|
|
externalCmdPool *externalcmd.Pool, |
|
|
|
externalCmdPool *externalcmd.Pool, |
|
|
|
metrics *metrics, |
|
|
|
metrics *metrics, |
|
|
|
@ -86,6 +88,7 @@ func newPathManager( |
|
|
|
readTimeout: readTimeout, |
|
|
|
readTimeout: readTimeout, |
|
|
|
writeTimeout: writeTimeout, |
|
|
|
writeTimeout: writeTimeout, |
|
|
|
readBufferCount: readBufferCount, |
|
|
|
readBufferCount: readBufferCount, |
|
|
|
|
|
|
|
udpMaxPayloadSize: udpMaxPayloadSize, |
|
|
|
pathConfs: pathConfs, |
|
|
|
pathConfs: pathConfs, |
|
|
|
externalCmdPool: externalCmdPool, |
|
|
|
externalCmdPool: externalCmdPool, |
|
|
|
metrics: metrics, |
|
|
|
metrics: metrics, |
|
|
|
@ -303,6 +306,7 @@ func (pm *pathManager) createPath( |
|
|
|
pm.readTimeout, |
|
|
|
pm.readTimeout, |
|
|
|
pm.writeTimeout, |
|
|
|
pm.writeTimeout, |
|
|
|
pm.readBufferCount, |
|
|
|
pm.readBufferCount, |
|
|
|
|
|
|
|
pm.udpMaxPayloadSize, |
|
|
|
pathConfName, |
|
|
|
pathConfName, |
|
|
|
pathConf, |
|
|
|
pathConf, |
|
|
|
name, |
|
|
|
name, |
|
|
|
|