mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 21:11:14 +00:00
log: Allow calling DebugCategory::new before gstreamer::init
This is safe.
This commit is contained in:
parent
f266e6cefc
commit
7e7d74af1e
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