gstreamer-rs/gstreamer-app/src/lib.rs

39 lines
868 B
Rust
Raw Normal View History

2020-12-15 10:53:31 +00:00
// Take a look at the license at the top of the repository in the LICENSE file.
2017-08-01 13:18:50 +00:00
#![cfg_attr(docsrs, feature(doc_cfg))]
2021-07-30 19:23:46 +00:00
#![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")]
pub use ffi;
pub use glib;
pub use gst;
pub use gst_base;
macro_rules! assert_initialized_main_thread {
() => {
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
gst::assert_initialized();
}
};
}
2017-08-01 13:18:50 +00:00
macro_rules! skip_assert_initialized {
2018-04-01 08:30:03 +00:00
() => {};
2017-08-01 13:18:50 +00:00
}
mod auto;
pub use crate::auto::*;
2017-08-01 13:18:50 +00:00
pub mod app_sink;
pub use crate::app_sink::AppSinkCallbacks;
pub mod app_src;
pub use crate::app_src::AppSrcCallbacks;
// Re-export all the traits in a prelude module, so that applications
// can always "use gst_app::prelude::*" without getting conflicts
pub mod prelude {
#[doc(hidden)]
pub use gst_base::prelude::*;
}