1
0
Fork 0
forked from External/mediamtx

hls: apply readTimeout to HLS sources (#2627)

This commit is contained in:
Alessandro Ros 2023-11-02 12:45:46 +01:00 committed by GitHub
parent 68b862c7f6
commit 15f1c73314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -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://"):