diff options
author | François Laignel <fengalin@free.fr> | 2022-10-17 20:48:43 +0300 |
---|---|---|
committer | François Laignel <fengalin@mailo.com> | 2022-10-18 13:36:59 +0300 |
commit | 8011eadfd2137b4c21fa8e6dfffe6891cb2be406 (patch) | |
tree | 1db00e75b8cc26362bda0cfc86fd424b27482440 /video/dav1d | |
parent | e66378d2544f9e39acfac18143cfac4afa8ae7ac (diff) |
Use new format constructors
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1128
Diffstat (limited to 'video/dav1d')
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index 211158687..1fa7ea8a3 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -344,7 +344,7 @@ impl Dav1dDec { out_buffer .get_mut() .unwrap() - .set_duration(gst::ClockTime::from_nseconds(duration)); + .set_duration(duration.nseconds()); } Ok(out_buffer) @@ -614,9 +614,7 @@ impl VideoDecoderImpl for Dav1dDec { n => n, }; - let latency = frame_latency - * (info.fps().denom() as u64) - * gst::ClockTime::SECOND + let latency = frame_latency * (info.fps().denom() as u64).seconds() / (fps_n as u64); gst::debug!(CAT, imp: self, "Reporting latency of {}", latency); |