diff options
author | François Laignel <fengalin@free.fr> | 2021-06-04 20:06:24 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-06-05 11:36:21 +0300 |
commit | e16cad7c8f4000ab5b1d649e54b8d6f8e19cf154 (patch) | |
tree | 4dfa96ee5452d77320399452e3d87d9f56217a7a /video/dav1d | |
parent | c2de0649a736fde8435434e0e6483c5ad96fdfe2 (diff) |
video: migrate to new ClockTime design
Diffstat (limited to 'video/dav1d')
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 4 |
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 |