Skip to content

Commit

Permalink
Input: Fix read position after seek restart (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDSource authored Dec 14, 2022
1 parent a2f55b7 commit 39a6f69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ impl Seek for Input {
SeekFrom::Start(self.container.input_start() as u64),
)?;

self.pos = 0;
self.cheap_consume(target)
})
.map(|_| self.pos as u64)
Expand Down

0 comments on commit 39a6f69

Please sign in to comment.