aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-game/src/demuxers/q.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-10-29 14:40:07 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-10-29 14:40:07 +0200
commit379524159c95f1c3639976ccf35f9d47cd9732ac (patch)
treea420329fa8bbb301f2d290d4813621b1c64afd12 /nihav-game/src/demuxers/q.rs
parentfa49f0616b3b7f6454ea5722f8a6d1ca38908df6 (diff)
downloadnihav-379524159c95f1c3639976ccf35f9d47cd9732ac.tar.gz
replace vec.truncate(0) with vec.clear()
Diffstat (limited to 'nihav-game/src/demuxers/q.rs')
-rw-r--r--nihav-game/src/demuxers/q.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-game/src/demuxers/q.rs b/nihav-game/src/demuxers/q.rs
index 3f38ef7..0b154e9 100644
--- a/nihav-game/src/demuxers/q.rs
+++ b/nihav-game/src/demuxers/q.rs
@@ -67,7 +67,7 @@ impl<'a> DemuxCore<'a> for QDemuxer<'a> {
}
self.apts = 0;
self.vpts = 0;
- self.side_data.truncate(0);
+ self.side_data.clear();
Ok(())
}