Fix bug with WebmBuffer double-counting reads
This commit is contained in:
parent
c6ab5e8e89
commit
c5a42afd32
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ impl<I: AsRef<[u8]>, S: Stream<Item = I>> WebmBuffer<S> {
|
||||||
return Ok(Async::NotReady);
|
return Ok(Async::NotReady);
|
||||||
},
|
},
|
||||||
Ok(Some((element, element_size))) => {
|
Ok(Some((element, element_size))) => {
|
||||||
self.last_read += element_size;
|
self.last_read = element_size;
|
||||||
return Ok(Async::Ready(Some(element)))
|
return Ok(Async::Ready(Some(element)))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue