]> git.nihav.org Git - nihav.git/commitdiff
core: fix NAStream.get_duration()
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 22 Nov 2021 17:46:19 +0000 (18:46 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 22 Nov 2021 17:46:19 +0000 (18:46 +0100)
nihav-core/src/frame.rs

index 70a054d3655842788839385122f1d8f2a2bc6b98..1ba361041c11c43c584c342a5bfd694ef0a78e0d 100644 (file)
@@ -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) }
 }