video: Add VideoOverlayComposition::add_rectangle() to add new rectangles after construction

Usually it is more convenient to provide them all via an iterator during
construction but in some cases this might be nicer.
This commit is contained in:
Sebastian Dröge 2022-01-26 12:53:41 +02:00
parent a0e192edb9
commit 4e3882f429

View file

@ -303,6 +303,13 @@ impl VideoOverlayCompositionRef {
}
}
#[doc(alias = "gst_video_overlay_composition_add_rectangle")]
pub fn add_rectangle(&mut self, rect: &VideoOverlayRectangleRef) {
unsafe {
ffi::gst_video_overlay_composition_add_rectangle(self.as_mut_ptr(), rect.as_mut_ptr());
}
}
#[doc(alias = "get_seqnum")]
#[doc(alias = "gst_video_overlay_composition_get_seqnum")]
pub fn seqnum(&self) -> u32 {