mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-28 20:41:31 +00:00
video: make nsec_since_daily_jam return ClockTime
This commit is contained in:
parent
e31ce9d07b
commit
aaa9eddc85
1 changed files with 5 additions and 2 deletions
|
@ -231,8 +231,11 @@ impl ValidVideoTimeCode {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_video_time_code_nsec_since_daily_jam")]
|
#[doc(alias = "gst_video_time_code_nsec_since_daily_jam")]
|
||||||
pub fn nsec_since_daily_jam(&self) -> u64 {
|
#[doc(alias = "nsec_since_daily_jam")]
|
||||||
unsafe { ffi::gst_video_time_code_nsec_since_daily_jam(self.to_glib_none().0) }
|
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")]
|
#[doc(alias = "gst_video_time_code_to_date_time")]
|
||||||
|
|
Loading…
Reference in a new issue