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 committed by Sebastian Dröge
parent f266e6cefc
commit 7e7d74af1e

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,