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 | #![allow (clippy::manual_c_str_literals)] |
6 | #![doc = include_str!("../README.md" )] |
7 | |
8 | pub use glib; |
9 | pub use gst; |
10 | pub use gst_base; |
11 | pub use gstreamer_app_sys as ffi; |
12 | |
13 | macro_rules! assert_initialized_main_thread { |
14 | () => { |
15 | if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) { |
16 | gst::assert_initialized(); |
17 | } |
18 | }; |
19 | } |
20 | |
21 | macro_rules! skip_assert_initialized { |
22 | () => {}; |
23 | } |
24 | |
25 | #[allow (unused_imports)] |
26 | mod auto; |
27 | pub use crate::auto::*; |
28 | |
29 | pub mod app_sink; |
30 | pub use crate::app_sink::AppSinkCallbacks; |
31 | |
32 | pub mod app_src; |
33 | pub use crate::app_src::AppSrcCallbacks; |
34 | |
35 | // Re-export all the traits in a prelude module, so that applications |
36 | // can always "use gst_app::prelude::*" without getting conflicts |
37 | pub mod prelude { |
38 | #[doc (hidden)] |
39 | pub use gst_base::prelude::*; |
40 | } |
41 | |