From a430fd93c831ba58fe85e8d2f648bea9bd99610e Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 9 Jul 2020 16:06:01 +0200 Subject: [PATCH] log: Allow calling DebugCategory::new before gstreamer::init This is safe. --- gstreamer/src/log.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index 8771f89fd..edb96bdc9 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -51,7 +51,7 @@ pub struct DebugCategory(ptr::NonNull); impl DebugCategory { pub fn new(name: &str, color: ::DebugColorFlags, description: Option<&str>) -> DebugCategory { - assert_initialized_main_thread!(); + skip_assert_initialized!(); extern "C" { fn _gst_debug_category_new( name: *const c_char,