do not allow closed static sources to set a path as ready

This commit is contained in:
aler9
2021-08-18 15:41:03 +02:00
parent 279459a472
commit a2ff0d455f
3 changed files with 9 additions and 2 deletions

View File

@@ -159,6 +159,7 @@ func (s *rtmpSource) runInner() bool {
s.log(logger.Info, "ready")
res := s.parent.OnSourceStaticSetReady(pathSourceStaticSetReadyReq{
Source: s,
Tracks: tracks,
})
if res.Err != nil {