mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
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:
parent
185eb188ca
commit
78a81e2c73
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue