validate: init_debug and setup_test_file is meant to be called before init

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1227>
This commit is contained in:
Thibault Saunier 2023-03-13 09:54:40 -03:00
parent 8eae37c525
commit b34718697c

View file

@ -12,7 +12,6 @@ pub fn init() {
#[doc(alias = "gst_validate_init_debug")] #[doc(alias = "gst_validate_init_debug")]
pub fn init_debug() { pub fn init_debug() {
assert_initialized_main_thread!();
unsafe { unsafe {
ffi::gst_validate_init_debug(); ffi::gst_validate_init_debug();
} }
@ -20,7 +19,7 @@ pub fn init_debug() {
#[doc(alias = "gst_validate_setup_test_file")] #[doc(alias = "gst_validate_setup_test_file")]
pub fn setup_test_file(test_file: &str, use_fakesinks: bool) -> gst::Structure { pub fn setup_test_file(test_file: &str, use_fakesinks: bool) -> gst::Structure {
assert_initialized_main_thread!(); skip_assert_initialized!();
unsafe { unsafe {
from_glib_full(ffi::gst_validate_setup_test_file( from_glib_full(ffi::gst_validate_setup_test_file(
test_file.to_glib_none().0, test_file.to_glib_none().0,