This reverts commit 500d18b6c6.
This commit is contained in:
Alessandro Ros
2025-06-03 20:27:53 +02:00
committed by GitHub
parent c055c13442
commit c21c969a8c
10 changed files with 79 additions and 287 deletions

View File

@@ -18,8 +18,6 @@ import (
"github.com/bluenviron/mediamtx/internal/stream"
)
var timeNow = time.Now
// Source is a RTMP static source.
type Source struct {
ReadTimeout conf.Duration
@@ -88,8 +86,7 @@ func (s *Source) runReader(ctx context.Context, u *url.URL, fingerprint string)
}
r := &rtmp.Reader{
Conn: conn,
TimeNow: timeNow,
Conn: conn,
}
err = r.Initialize()
if err != nil {