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
7pub use ffi;
8pub use glib;
9pub use gst;
10pub use gst_base;
11
12macro_rules! assert_initialized_main_thread {
13 () => {
14 if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
15 gst::assert_initialized();
16 }
17 };
18}
19
20macro_rules! skip_assert_initialized {
21 () => {};
22}
23
24mod auto;
25pub use crate::auto::*;
26
27pub mod app_sink;
28pub use crate::app_sink::AppSinkCallbacks;
29
30pub mod app_src;
31pub 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
35pub mod prelude {
36 #[doc(hidden)]
37 pub use gst_base::prelude::*;
38}
39