projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: replace vec.truncate(0) with vec.clear()
[nihav.git]
/
nihav-core
/
src
/
reorder.rs
diff --git
a/nihav-core/src/reorder.rs
b/nihav-core/src/reorder.rs
index 6ae7e1af937b3063607976959f41a7cb4f52be9b..ebd7bdfcafa40d1196228dcda16905c9f83aa2d3 100644
(file)
--- a/
nihav-core/src/reorder.rs
+++ b/
nihav-core/src/reorder.rs
@@
-159,7
+159,7
@@
impl FrameReorderer for ComplexReorderer {
fn flush(&mut self) {
self.last_ref_dts = None;
self.ready_idx = 0;
- self.frames.
truncate(0
);
+ self.frames.
clear(
);
}
fn get_last_frames(&mut self) -> Option<NAFrameRef> {
if !self.frames.is_empty() {