fit engine update

This commit is contained in:
langhuihui
2023-05-23 20:58:59 +08:00
parent 8e84bb637a
commit 9defe4eec3

View File

@@ -74,14 +74,12 @@ var rtspConfig = &RTSPConfig{}
var RTSPPlugin = InstallPlugin(rtspConfig)
func filterStreams() (ss []*Stream) {
Streams.RLock()
defer Streams.RUnlock()
for _, s := range Streams.Map {
Streams.Range(func(key string, s *Stream) {
switch s.Publisher.(type) {
case *RTSPPublisher, *RTSPPuller:
ss = append(ss, s)
}
}
})
return
}