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:
Derrick Hammer 2024-03-09 17:46:18 -05:00
parent e89a9450e9
commit 1f1f204b35
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func (f *S5File) Read(p []byte) (n int, err error) {
func (f *S5File) Seek(offset int64, whence int) (int64, error) { func (f *S5File) Seek(offset int64, whence int) (int64, error) {
switch whence { switch whence {
case io.SeekStart: case io.SeekStart:
if !f.read { if !f.read && offset == 0 {
return 0, nil return 0, nil
} }