aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-11-22 18:46:19 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-11-22 18:46:19 +0100
commit556509ab9495f191dac5531be40930daeb7562d0 (patch)
treebc7d0c8f322d146bac731731df7dd07d5171f968
parenta091b9684d877827287a51259edce3140112667a (diff)
downloadnihav-556509ab9495f191dac5531be40930daeb7562d0.tar.gz
core: fix NAStream.get_duration()
-rw-r--r--nihav-core/src/frame.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs
index 70a054d..1ba3610 100644
--- a/nihav-core/src/frame.rs
+++ b/nihav-core/src/frame.rs
@@ -1357,7 +1357,7 @@ impl NAStream {
self.tb_den = d;
}
/// Returns stream duration.
- pub fn get_duration(&self) -> usize { self.num }
+ pub fn get_duration(&self) -> u64 { self.duration }
/// Converts current instance into a reference-counted one.
pub fn into_ref(self) -> NAStreamRef { Arc::new(self) }
}