gstreamer-rs/gstreamer-rtsp/src/lib.rs

39 lines
864 B
Rust
Raw Permalink 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.
#![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 glib;
pub use gst;
pub use gst_sdp;
pub use gstreamer_rtsp_sys as ffi;
macro_rules! assert_initialized_main_thread {
2018-04-01 08:30:03 +00:00
() => {
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
gst::assert_initialized();
}
2018-04-01 08:30:03 +00:00
};
}
macro_rules! skip_assert_initialized {
2018-04-01 08:30:03 +00:00
() => {};
}
mod auto;
pub use crate::auto::*;
#[cfg(feature = "serde")]
mod flag_serde;
pub mod rtsp_auth_credential;
pub mod rtsp_message;
// Re-export all the traits in a prelude module, so that applications
// can always "use gst_rtsp::prelude::*" without getting conflicts
pub mod prelude {
#[doc(hidden)]
pub use gst_sdp::prelude::*;
}