From aaa9eddc85f82cb820602ee0e1c8742b31360a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Fri, 4 Jun 2021 21:40:56 +0200 Subject: [PATCH] video: make nsec_since_daily_jam return ClockTime --- gstreamer-video/src/video_time_code.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gstreamer-video/src/video_time_code.rs b/gstreamer-video/src/video_time_code.rs index 681d2aa8d..f0ca8019c 100644 --- a/gstreamer-video/src/video_time_code.rs +++ b/gstreamer-video/src/video_time_code.rs @@ -231,8 +231,11 @@ impl ValidVideoTimeCode { } #[doc(alias = "gst_video_time_code_nsec_since_daily_jam")] - pub fn nsec_since_daily_jam(&self) -> u64 { - unsafe { ffi::gst_video_time_code_nsec_since_daily_jam(self.to_glib_none().0) } + #[doc(alias = "nsec_since_daily_jam")] + pub fn time_since_daily_jam(&self) -> gst::ClockTime { + gst::ClockTime::from_nseconds(unsafe { + ffi::gst_video_time_code_nsec_since_daily_jam(self.to_glib_none().0) + }) } #[doc(alias = "gst_video_time_code_to_date_time")]