mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +00:00
log: Allow calling DebugCategory::new before gstreamer::init
This is safe.
This commit is contained in:
parent
f40821ba66
commit
a430fd93c8
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ pub struct DebugCategory(ptr::NonNull<gst_sys::GstDebugCategory>);
|
||||||
|
|
||||||
impl DebugCategory {
|
impl DebugCategory {
|
||||||
pub fn new(name: &str, color: ::DebugColorFlags, description: Option<&str>) -> DebugCategory {
|
pub fn new(name: &str, color: ::DebugColorFlags, description: Option<&str>) -> DebugCategory {
|
||||||
assert_initialized_main_thread!();
|
skip_assert_initialized!();
|
||||||
extern "C" {
|
extern "C" {
|
||||||
fn _gst_debug_category_new(
|
fn _gst_debug_category_new(
|
||||||
name: *const c_char,
|
name: *const c_char,
|
||||||
|
|
Loading…
Reference in a new issue