mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-28 19:10:34 +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")]
|
||||
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")]
|
||||
|
|
Loading…
Reference in a new issue