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) var RTSPPlugin = InstallPlugin(rtspConfig)
func filterStreams() (ss []*Stream) { func filterStreams() (ss []*Stream) {
Streams.RLock() Streams.Range(func(key string, s *Stream) {
defer Streams.RUnlock()
for _, s := range Streams.Map {
switch s.Publisher.(type) { switch s.Publisher.(type) {
case *RTSPPublisher, *RTSPPuller: case *RTSPPublisher, *RTSPPuller:
ss = append(ss, s) ss = append(ss, s)
} }
} })
return return
} }