Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2021-06-04 20:06:24 +0300
committerFrançois Laignel <fengalin@free.fr>2021-06-05 11:36:21 +0300
commite16cad7c8f4000ab5b1d649e54b8d6f8e19cf154 (patch)
tree4dfa96ee5452d77320399452e3d87d9f56217a7a /video/dav1d
parentc2de0649a736fde8435434e0e6483c5ad96fdfe2 (diff)
video: migrate to new ClockTime design
Diffstat (limited to 'video/dav1d')
-rw-r--r--video/dav1d/src/dav1ddec/imp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs
index fb179bb03..2aad908b4 100644
--- a/video/dav1d/src/dav1ddec/imp.rs
+++ b/video/dav1d/src/dav1ddec/imp.rs
@@ -138,8 +138,8 @@ impl Dav1dDec {
frame: &gst_video::VideoCodecFrame,
) -> Result<Vec<(dav1d::Picture, gst_video::VideoFormat)>, gst::FlowError> {
let mut decoder = self.decoder.lock().unwrap();
- let timestamp = frame.dts().0.map(|ts| ts as i64);
- let duration = frame.duration().0.map(|d| d as i64);
+ let timestamp = frame.dts().map(|ts| *ts as i64);
+ let duration = frame.duration().map(|d| *d as i64);
let frame_number = Some(frame.system_frame_number() as i64);
let input_data = input_buffer