caps: add new_empty_simple constructor

This commit is contained in:
Paolo Borelli 2022-07-04 18:48:42 +02:00
parent 17005f220b
commit f2a2e6702c

View file

@ -64,6 +64,12 @@ impl Caps {
caps
}
#[doc(alias = "gst_caps_new_empty_simple")]
pub fn new_empty_simple(name: &str) -> Self {
skip_assert_initialized!();
Self::new_simple(name, &[])
}
#[doc(alias = "gst_caps_fixate")]
pub fn fixate(&mut self) {
skip_assert_initialized!();