| 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. |
| 8 | |
| 9 | #![cfg_attr (docsrs, feature(doc_cfg))] |
| 10 | #![allow (clippy::missing_safety_doc)] |
| 11 | #![allow (clippy::manual_c_str_literals)] |
| 12 | |
| 13 | pub use gst_gl; |
| 14 | pub use gstreamer_gl_egl_sys as ffi; |
| 15 | |
| 16 | macro_rules! assert_initialized_main_thread { |
| 17 | () => { |
| 18 | if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) { |
| 19 | gst::assert_initialized(); |
| 20 | } |
| 21 | }; |
| 22 | } |
| 23 | |
| 24 | #[allow (unused_imports)] |
| 25 | mod auto; |
| 26 | pub use auto::*; |
| 27 | |
| 28 | mod gl_display_egl; |
| 29 | |