gstreamer-video: ValidVideoTimeCode::add_interval() is guaranteed to return a valid timecode again

So change the return type from VideoTimeCode to ValidVideoTimeCode.
This commit is contained in:
Sebastian Dröge 2020-04-14 17:24:11 +03:00
parent 185eb188ca
commit 78a81e2c73

View file

@ -204,7 +204,7 @@ impl ValidVideoTimeCode {
pub fn add_interval( pub fn add_interval(
&self, &self,
tc_inter: &VideoTimeCodeInterval, tc_inter: &VideoTimeCodeInterval,
) -> Result<VideoTimeCode, glib::error::BoolError> { ) -> Result<ValidVideoTimeCode, glib::error::BoolError> {
unsafe { unsafe {
match from_glib_full(gst_video_sys::gst_video_time_code_add_interval( match from_glib_full(gst_video_sys::gst_video_time_code_add_interval(
self.to_glib_none().0, self.to_glib_none().0,