mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-12 02:05:29 +00:00
ba1d8c5ce6
This keeps the number of duplicated panics all over the codebase lower and reduces generated code size. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1184>
29 lines
841 B
Rust
29 lines
841 B
Rust
// Copyright (C) 2020 Sebastian Dröge <sebastian@centricular.com>
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
|
#![allow(clippy::missing_safety_doc)]
|
|
#![allow(clippy::non_send_fields_in_send_ty)]
|
|
|
|
pub use ffi;
|
|
pub use gst_gl;
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
|
() => {
|
|
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
|
|
gst::assert_initialized();
|
|
}
|
|
};
|
|
}
|
|
|
|
#[allow(clippy::use_self)]
|
|
mod auto;
|
|
pub use auto::*;
|
|
|
|
mod gl_display_wayland;
|
|
pub use gl_display_wayland::*;
|