From: Kostya Shishkov Date: Mon, 22 Nov 2021 17:46:19 +0000 (+0100) Subject: core: fix NAStream.get_duration() X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=556509ab9495f191dac5531be40930daeb7562d0;p=nihav.git core: fix NAStream.get_duration() --- 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) } }