mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-05 09:10:22 +00:00
caps: add new_empty_simple constructor
This commit is contained in:
parent
17005f220b
commit
f2a2e6702c
1 changed files with 6 additions and 0 deletions
|
@ -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!();
|
||||
|
|
Loading…
Reference in a new issue