fix: only return noop is we are SeekStart and want the beginning, otherwise this is likely actually needing to start a partial content seek
This commit is contained in:
parent
e89a9450e9
commit
1f1f204b35
|
@ -121,7 +121,7 @@ func (f *S5File) Read(p []byte) (n int, err error) {
|
|||
func (f *S5File) Seek(offset int64, whence int) (int64, error) {
|
||||
switch whence {
|
||||
case io.SeekStart:
|
||||
if !f.read {
|
||||
if !f.read && offset == 0 {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue