mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 20:11:56 -08:00
increase rtmp analyze timeout
This commit is contained in:
parent
7dc72f4490
commit
8ff33f88ab
1 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,8 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
retryPause = 5 * time.Second
|
||||
retryPause = 5 * time.Second
|
||||
analyzeTimeout = 8 * time.Second
|
||||
)
|
||||
|
||||
// Parent is implemeneted by path.Path.
|
||||
|
|
@ -151,8 +152,7 @@ func (s *Source) runInner() bool {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
h264Sps = codec.SPS[0]
|
||||
h264Pps = codec.PPS[0]
|
||||
h264Sps, h264Pps = codec.SPS[0], codec.PPS[0]
|
||||
|
||||
if aacConfig != nil {
|
||||
return
|
||||
|
|
@ -168,7 +168,7 @@ func (s *Source) runInner() bool {
|
|||
}
|
||||
}()
|
||||
|
||||
timer := time.NewTimer(5 * time.Second)
|
||||
timer := time.NewTimer(analyzeTimeout)
|
||||
defer timer.Stop()
|
||||
|
||||
select {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue