fix bug.
This commit is contained in:
parent
8ada0217d0
commit
e37f5c13ca
1 changed files with 6 additions and 1 deletions
|
|
@ -94,6 +94,7 @@ func streamSrcNew(enabled bool, codecPipeline map[string]string, video_id string
|
|||
// metrics
|
||||
pushedData: pushedData,
|
||||
pipelinesCounter: pipelinesCounter,
|
||||
pipelinesActive: pipelinesActive,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,9 +167,13 @@ func (manager *StreamSrcManagerCtx) Stop() {
|
|||
}
|
||||
|
||||
manager.pipeline.Destroy()
|
||||
manager.logger.Info().Msgf("destroying pipeline")
|
||||
manager.pipeline = nil
|
||||
|
||||
manager.logger.Info().
|
||||
Str("codec", manager.codec.Name).
|
||||
Str("src", manager.pipelineStr).
|
||||
Msgf("destroying pipeline")
|
||||
|
||||
manager.pipelinesActive[manager.codec.Name].Set(0)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue