1 | // Take a look at the license at the top of the repository in the LICENSE file. |
2 | |
3 | #![cfg_attr (docsrs, feature(doc_cfg))] |
4 | #![allow (clippy::missing_safety_doc)] |
5 | #![doc = include_str!("../README.md" )] |
6 | |
7 | pub use ffi; |
8 | pub use glib; |
9 | pub use gst; |
10 | pub use gst_base; |
11 | |
12 | macro_rules! assert_initialized_main_thread { |
13 | () => { |
14 | if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) { |
15 | gst::assert_initialized(); |
16 | } |
17 | }; |
18 | } |
19 | |
20 | macro_rules! skip_assert_initialized { |
21 | () => {}; |
22 | } |
23 | |
24 | mod auto; |
25 | pub use crate::auto::*; |
26 | |
27 | pub mod app_sink; |
28 | pub use crate::app_sink::AppSinkCallbacks; |
29 | |
30 | pub mod app_src; |
31 | pub use crate::app_src::AppSrcCallbacks; |
32 | |
33 | // Re-export all the traits in a prelude module, so that applications |
34 | // can always "use gst_app::prelude::*" without getting conflicts |
35 | pub mod prelude { |
36 | #[doc (hidden)] |
37 | pub use gst_base::prelude::*; |
38 | } |
39 | |