projects
/
nihav-player.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flush decoder post-seek
[nihav-player.git]
/
sndplay
/
src
/
main.rs
diff --git
a/sndplay/src/main.rs
b/sndplay/src/main.rs
index 275826ff9f7db9d425b5efc9a3c37a12179ba3ef..ce9b6f66d54271788ed7ee2ae21eb30becdba166 100644
(file)
--- a/
sndplay/src/main.rs
+++ b/
sndplay/src/main.rs
@@
-196,6
+196,7
@@
impl<'a> Decoder<'a> {
fn seek(&mut self, time: u64) -> bool {
let ret = self.demuxer.seek(NATimePoint::Milliseconds(time));
if ret.is_err() { println!(" seek error\n"); }
+ self.decoder.flush();
ret.is_ok()
}
}