forked from mirrors/gstreamer-rs
video: Implement Default
for VideoOverlayComposition
in 1.20
This commit is contained in:
parent
245fe4452c
commit
a0e192edb9
1 changed files with 11 additions and 0 deletions
|
@ -268,6 +268,17 @@ impl VideoOverlayComposition {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||||
|
impl Default for VideoOverlayComposition {
|
||||||
|
fn default() -> Self {
|
||||||
|
assert_initialized_main_thread!();
|
||||||
|
|
||||||
|
use std::ptr;
|
||||||
|
|
||||||
|
unsafe { from_glib_full(ffi::gst_video_overlay_composition_new(ptr::null_mut())) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl VideoOverlayCompositionRef {
|
impl VideoOverlayCompositionRef {
|
||||||
#[doc(alias = "gst_video_overlay_composition_n_rectangles")]
|
#[doc(alias = "gst_video_overlay_composition_n_rectangles")]
|
||||||
pub fn n_rectangles(&self) -> u32 {
|
pub fn n_rectangles(&self) -> u32 {
|
||||||
|
|
Loading…
Reference in a new issue