mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
fit engine update
This commit is contained in:
6
main.go
6
main.go
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user