mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-03 18:33:51 +00:00
validate: Do not check if validate is initialized to build action types
That is not required Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1771>
This commit is contained in:
parent
f38af06ec8
commit
091185144f
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ impl Drop for ActionParameter {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn into_glib_content(mut t: Vec<ActionParameter>) -> *mut ffi::GstValidateActionParameter {
|
fn into_glib_content(mut t: Vec<ActionParameter>) -> *mut ffi::GstValidateActionParameter {
|
||||||
assert_initialized_main_thread!();
|
skip_assert_initialized!();
|
||||||
if t.is_empty() {
|
if t.is_empty() {
|
||||||
return ptr::null_mut();
|
return ptr::null_mut();
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ pub struct ActionParameterBuilder<'a> {
|
||||||
|
|
||||||
impl<'a> ActionParameterBuilder<'a> {
|
impl<'a> ActionParameterBuilder<'a> {
|
||||||
pub fn new(name: &'a str, description: &'a str) -> Self {
|
pub fn new(name: &'a str, description: &'a str) -> Self {
|
||||||
assert_initialized_main_thread!();
|
skip_assert_initialized!();
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue