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:
Thibault Saunier 2025-08-07 15:43:53 -04:00 committed by GStreamer Marge Bot
parent f38af06ec8
commit 091185144f

View file

@ -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,