X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;ds=sidebyside;f=nihav-core%2Fsrc%2Fframe.rs;h=f596dc95ad2b1d02b684c6563be6bd0492a4e5ec;hb=b191eef3e3e1b6bea510c7e64606d8442f974f8b;hp=31cf8e81991a519d26827e13913175a6d3cd1dd6;hpb=a1298b7a5dcf1656dfc9bdbf3d6c80df89a70fc8;p=nihav.git diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 31cf8e8..f596dc9 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -752,7 +752,7 @@ impl NAVideoBufferPool { } /// Clears the pool from all frames. pub fn reset(&mut self) { - self.pool.truncate(0); + self.pool.clear(); } }