aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/reorder.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-10-29 14:42:54 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-10-29 14:42:54 +0200
commitb191eef3e3e1b6bea510c7e64606d8442f974f8b (patch)
treeef4a046001cb0cea43dfe14cc6a8a379c8720bc9 /nihav-core/src/reorder.rs
parent379524159c95f1c3639976ccf35f9d47cd9732ac (diff)
downloadnihav-b191eef3e3e1b6bea510c7e64606d8442f974f8b.tar.gz
core: replace vec.truncate(0) with vec.clear()
Diffstat (limited to 'nihav-core/src/reorder.rs')
-rw-r--r--nihav-core/src/reorder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-core/src/reorder.rs b/nihav-core/src/reorder.rs
index 6ae7e1a..ebd7bdf 100644
--- 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() {