mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-27 01:30:25 +08:00
remove stats from rtmp and rtsp source
This commit is contained in:
@@ -589,7 +589,6 @@ func (pa *path) staticSourceCreate() {
|
|||||||
pa.readBufferCount,
|
pa.readBufferCount,
|
||||||
pa.readBufferSize,
|
pa.readBufferSize,
|
||||||
&pa.sourceStaticWg,
|
&pa.sourceStaticWg,
|
||||||
pa.stats,
|
|
||||||
pa)
|
pa)
|
||||||
} else if strings.HasPrefix(pa.conf.Source, "rtmp://") {
|
} else if strings.HasPrefix(pa.conf.Source, "rtmp://") {
|
||||||
pa.source = newRTMPSource(
|
pa.source = newRTMPSource(
|
||||||
@@ -598,7 +597,6 @@ func (pa *path) staticSourceCreate() {
|
|||||||
pa.readTimeout,
|
pa.readTimeout,
|
||||||
pa.writeTimeout,
|
pa.writeTimeout,
|
||||||
&pa.sourceStaticWg,
|
&pa.sourceStaticWg,
|
||||||
pa.stats,
|
|
||||||
pa)
|
pa)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ type rtmpSource struct {
|
|||||||
readTimeout time.Duration
|
readTimeout time.Duration
|
||||||
writeTimeout time.Duration
|
writeTimeout time.Duration
|
||||||
wg *sync.WaitGroup
|
wg *sync.WaitGroup
|
||||||
stats *stats
|
|
||||||
parent rtmpSourceParent
|
parent rtmpSourceParent
|
||||||
|
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
@@ -45,7 +44,6 @@ func newRTMPSource(
|
|||||||
readTimeout time.Duration,
|
readTimeout time.Duration,
|
||||||
writeTimeout time.Duration,
|
writeTimeout time.Duration,
|
||||||
wg *sync.WaitGroup,
|
wg *sync.WaitGroup,
|
||||||
stats *stats,
|
|
||||||
parent rtmpSourceParent) *rtmpSource {
|
parent rtmpSourceParent) *rtmpSource {
|
||||||
ctx, ctxCancel := context.WithCancel(parentCtx)
|
ctx, ctxCancel := context.WithCancel(parentCtx)
|
||||||
|
|
||||||
@@ -54,7 +52,6 @@ func newRTMPSource(
|
|||||||
readTimeout: readTimeout,
|
readTimeout: readTimeout,
|
||||||
writeTimeout: writeTimeout,
|
writeTimeout: writeTimeout,
|
||||||
wg: wg,
|
wg: wg,
|
||||||
stats: stats,
|
|
||||||
parent: parent,
|
parent: parent,
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
ctxCancel: ctxCancel,
|
ctxCancel: ctxCancel,
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ type rtspSource struct {
|
|||||||
readBufferCount int
|
readBufferCount int
|
||||||
readBufferSize int
|
readBufferSize int
|
||||||
wg *sync.WaitGroup
|
wg *sync.WaitGroup
|
||||||
stats *stats
|
|
||||||
parent rtspSourceParent
|
parent rtspSourceParent
|
||||||
|
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
@@ -54,7 +53,6 @@ func newRTSPSource(
|
|||||||
readBufferCount int,
|
readBufferCount int,
|
||||||
readBufferSize int,
|
readBufferSize int,
|
||||||
wg *sync.WaitGroup,
|
wg *sync.WaitGroup,
|
||||||
stats *stats,
|
|
||||||
parent rtspSourceParent) *rtspSource {
|
parent rtspSourceParent) *rtspSource {
|
||||||
ctx, ctxCancel := context.WithCancel(parentCtx)
|
ctx, ctxCancel := context.WithCancel(parentCtx)
|
||||||
|
|
||||||
@@ -68,7 +66,6 @@ func newRTSPSource(
|
|||||||
readBufferCount: readBufferCount,
|
readBufferCount: readBufferCount,
|
||||||
readBufferSize: readBufferSize,
|
readBufferSize: readBufferSize,
|
||||||
wg: wg,
|
wg: wg,
|
||||||
stats: stats,
|
|
||||||
parent: parent,
|
parent: parent,
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
ctxCancel: ctxCancel,
|
ctxCancel: ctxCancel,
|
||||||
|
|||||||
Reference in New Issue
Block a user