mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-06-05 15:09:00 +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
|
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")]
|
#[doc(alias = "gst_caps_fixate")]
|
||||||
pub fn fixate(&mut self) {
|
pub fn fixate(&mut self) {
|
||||||
skip_assert_initialized!();
|
skip_assert_initialized!();
|
||||||
|
|
Loading…
Reference in a new issue