Browse Source

increase rtmp analyze timeout

pull/169/head v0.12.1
aler9 5 years ago
parent
commit
8ff33f88ab
  1. 8
      internal/sourcertmp/source.go

8
internal/sourcertmp/source.go

@ -18,7 +18,8 @@ import (
) )
const ( const (
retryPause = 5 * time.Second retryPause = 5 * time.Second
analyzeTimeout = 8 * time.Second
) )
// Parent is implemeneted by path.Path. // Parent is implemeneted by path.Path.
@ -151,8 +152,7 @@ func (s *Source) runInner() bool {
panic(err) panic(err)
} }
h264Sps = codec.SPS[0] h264Sps, h264Pps = codec.SPS[0], codec.PPS[0]
h264Pps = codec.PPS[0]
if aacConfig != nil { if aacConfig != nil {
return return
@ -168,7 +168,7 @@ func (s *Source) runInner() bool {
} }
}() }()
timer := time.NewTimer(5 * time.Second) timer := time.NewTimer(analyzeTimeout)
defer timer.Stop() defer timer.Stop()
select { select {

Loading…
Cancel
Save