Fix "seekable" log message (was always "false")

This commit is contained in:
Deluan 2020-11-05 18:11:12 -05:00
parent 9224a67a7b
commit 8d7931b3bc
1 changed files with 3 additions and 5 deletions

View File

@ -91,16 +91,14 @@ func (ms *mediaStreamer) NewStream(ctx context.Context, id string, reqFormat str
}
cached = r.Cached
s.ReadCloser = r
s.Seeker = r.Seeker
log.Debug(ctx, "Streaming TRANSCODED file", "id", mf.ID, "path", mf.Path,
"requestBitrate", reqBitRate, "requestFormat", reqFormat,
"originalBitrate", mf.BitRate, "originalFormat", mf.Suffix,
"selectedBitrate", bitRate, "selectedFormat", format, "cached", cached, "seekable", s.Seekable())
s.ReadCloser = r
if r.Seekable() {
s.Seeker = r
}
return s, nil
}