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/1767>
This commit is contained in:
Thibault Saunier 2025-08-07 15:43:53 -04:00 committed by GStreamer Marge Bot
parent 9968b8a3af
commit 9d89a437d7

View file

@ -20,7 +20,7 @@ impl Drop for ActionParameter {
}
fn into_glib_content(mut t: Vec<ActionParameter>) -> *mut ffi::GstValidateActionParameter {
assert_initialized_main_thread!();
skip_assert_initialized!();
if t.is_empty() {
return ptr::null_mut();
}
@ -63,7 +63,7 @@ pub struct ActionParameterBuilder<'a> {
impl<'a> ActionParameterBuilder<'a> {
pub fn new(name: &'a str, description: &'a str) -> Self {
assert_initialized_main_thread!();
skip_assert_initialized!();
Self {
name,