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