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)
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user