mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
video: Implement Default
for VideoOverlayComposition
in 1.20
This commit is contained in:
parent
a734f38ee6
commit
52e09fd83d
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 {
|
||||
#[doc(alias = "gst_video_overlay_composition_n_rectangles")]
|
||||
pub fn n_rectangles(&self) -> u32 {
|
||||
|
|
Loading…
Reference in a new issue