From b34718697ce5524f98e1dfb6c079ec205c2b92d6 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 13 Mar 2023 09:54:40 -0300 Subject: [PATCH] validate: init_debug and setup_test_file is meant to be called before init Part-of: --- gstreamer-validate/src/functions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gstreamer-validate/src/functions.rs b/gstreamer-validate/src/functions.rs index f8636530d..28db219d2 100644 --- a/gstreamer-validate/src/functions.rs +++ b/gstreamer-validate/src/functions.rs @@ -12,7 +12,6 @@ pub fn init() { #[doc(alias = "gst_validate_init_debug")] pub fn init_debug() { - assert_initialized_main_thread!(); unsafe { ffi::gst_validate_init_debug(); } @@ -20,7 +19,7 @@ pub fn init_debug() { #[doc(alias = "gst_validate_setup_test_file")] pub fn setup_test_file(test_file: &str, use_fakesinks: bool) -> gst::Structure { - assert_initialized_main_thread!(); + skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_validate_setup_test_file( test_file.to_glib_none().0,