forked from External/mediamtx
hls: apply readTimeout to HLS sources (#2627)
This commit is contained in:
parent
68b862c7f6
commit
15f1c73314
3 changed files with 7 additions and 4 deletions
|
|
@ -83,7 +83,8 @@ func newStaticSourceHandler(
|
|||
case strings.HasPrefix(cnf.Source, "http://") ||
|
||||
strings.HasPrefix(cnf.Source, "https://"):
|
||||
s.instance = &hlssource.Source{
|
||||
Parent: s,
|
||||
ReadTimeout: readTimeout,
|
||||
Parent: s,
|
||||
}
|
||||
|
||||
case strings.HasPrefix(cnf.Source, "udp://"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue