log: Allow calling DebugCategory::new before gstreamer::init

This is safe.
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-07-09 16:06:01 +02:00
parent f40821ba66
commit a430fd93c8
No known key found for this signature in database
GPG key ID: 3B94A80E50A477C7

View file

@ -51,7 +51,7 @@ pub struct DebugCategory(ptr::NonNull<gst_sys::GstDebugCategory>);
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,