This commit is contained in:
Miroslav Šedivý 2022-07-04 18:03:35 +02:00
parent 8ada0217d0
commit e37f5c13ca

View File

@ -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)
}