mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
video: Add #[must_use]
attribute to VideoTimeCode::add_interval()
It doesn't change the original value but returns the new result. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1541>
This commit is contained in:
parent
cabad5890c
commit
2ebd401de6
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ impl ValidVideoTimeCode {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_video_time_code_add_interval")]
|
#[doc(alias = "gst_video_time_code_add_interval")]
|
||||||
|
#[must_use = "this returns the result of the operation, without modifying the original"]
|
||||||
pub fn add_interval(
|
pub fn add_interval(
|
||||||
&self,
|
&self,
|
||||||
tc_inter: &VideoTimeCodeInterval,
|
tc_inter: &VideoTimeCodeInterval,
|
||||||
|
|
Loading…
Reference in a new issue