Browse Source

#112 issue improved, stopping writing to flvs after streaming stopped

pull/141/head
simus 5 years ago
parent
commit
fa892e2f3d
  1. 2
      protocol/rtmp/stream.go

2
protocol/rtmp/stream.go

@ -402,8 +402,8 @@ func (s *Stream) closeInter() { @@ -402,8 +402,8 @@ func (s *Stream) closeInter() {
s.ws.Range(func(key, val interface{}) bool {
v := val.(*PackWriterCloser)
if v.w != nil {
v.w.Close(fmt.Errorf("closed"))
if v.w.Info().IsInterval() {
v.w.Close(fmt.Errorf("closed"))
s.ws.Delete(key)
log.Debugf("[%v] player closed and remove\n", v.w.Info())
}

Loading…
Cancel
Save