mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 02:51:10 +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/1529>
This commit is contained in:
parent
bd37999166
commit
ce92502d61
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