projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: fix clippy warnings
[nihav.git]
/
nihav-core
/
src
/
frame.rs
diff --git
a/nihav-core/src/frame.rs
b/nihav-core/src/frame.rs
index f7a318a98021c69cbb7cd6a05f251490739876c1..fbccfbee0a5d3106f0e14f323110548e669d202c 100644
(file)
--- a/
nihav-core/src/frame.rs
+++ b/
nihav-core/src/frame.rs
@@
-979,7
+979,7
@@
impl NATimeInfo {
}
}
}
}
}
}
- fn get_cur_ts(&self) -> u64 { self.pts.unwrap_or
(
self.dts.unwrap_or(0)) }
+ fn get_cur_ts(&self) -> u64 { self.pts.unwrap_or
_else(||
self.dts.unwrap_or(0)) }
fn get_cur_millis(&self) -> u64 {
let ts = self.get_cur_ts();
Self::ts_to_time(ts, 1000, self.tb_num, self.tb_den)
fn get_cur_millis(&self) -> u64 {
let ts = self.get_cur_ts();
Self::ts_to_time(ts, 1000, self.tb_num, self.tb_den)