Browse Source

Merge pull request #141 from sSimuSs/master

Improved issue with not stopping writing to .flv files even streaming is stopped
pull/154/head
浩麟 5 years ago committed by GitHub
parent
commit
b10a1f1c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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