Fix "seekable" log message (was always "false")
This commit is contained in:
parent
9224a67a7b
commit
8d7931b3bc
1 changed files with 3 additions and 5 deletions
|
|
@ -91,16 +91,14 @@ func (ms *mediaStreamer) NewStream(ctx context.Context, id string, reqFormat str
|
||||||
}
|
}
|
||||||
cached = r.Cached
|
cached = r.Cached
|
||||||
|
|
||||||
|
s.ReadCloser = r
|
||||||
|
s.Seeker = r.Seeker
|
||||||
|
|
||||||
log.Debug(ctx, "Streaming TRANSCODED file", "id", mf.ID, "path", mf.Path,
|
log.Debug(ctx, "Streaming TRANSCODED file", "id", mf.ID, "path", mf.Path,
|
||||||
"requestBitrate", reqBitRate, "requestFormat", reqFormat,
|
"requestBitrate", reqBitRate, "requestFormat", reqFormat,
|
||||||
"originalBitrate", mf.BitRate, "originalFormat", mf.Suffix,
|
"originalBitrate", mf.BitRate, "originalFormat", mf.Suffix,
|
||||||
"selectedBitrate", bitRate, "selectedFormat", format, "cached", cached, "seekable", s.Seekable())
|
"selectedBitrate", bitRate, "selectedFormat", format, "cached", cached, "seekable", s.Seekable())
|
||||||
|
|
||||||
s.ReadCloser = r
|
|
||||||
if r.Seekable() {
|
|
||||||
s.Seeker = r
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue