1// Copyright (C) 2020 Sebastian Dröge <sebastian@centricular.com>
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
89#![cfg_attr(docsrs, feature(doc_cfg))]
10#![allow(clippy::missing_safety_doc)]
11#![allow(clippy::manual_c_str_literals)]
1213pub use gst_gl;
14pub use gstreamer_gl_egl_sys as ffi;
1516macro_rules! assert_initialized_main_thread {
17 () => {
18if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
19 gst::assert_initialized();
20 }
21 };
22}
2324#[allow(unused_imports)]
25mod auto;
26pub use auto::*;
2728mod gl_display_egl;
2930// Re-export all the traits in a prelude module, so that applications
31// can always "use gst_egl::prelude::*" without getting conflicts
32pub mod prelude {
33#[doc(hidden)]
34pub use gst_gl::prelude::*;
3536pub use crate::auto::traits::*;
37}