2020-12-15 10:53:31 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2023-05-04 05:55:48 +00:00
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
2021-07-30 19:23:46 +00:00
|
|
|
#![allow(clippy::missing_safety_doc)]
|
2021-07-30 16:03:12 +00:00
|
|
|
#![doc = include_str!("../README.md")]
|
2020-11-18 12:48:41 +00:00
|
|
|
|
2020-12-20 17:39:15 +00:00
|
|
|
pub use glib;
|
|
|
|
pub use gst;
|
|
|
|
pub use gst_sdp;
|
2024-06-02 08:48:53 +00:00
|
|
|
pub use gstreamer_rtsp_sys as ffi;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
2018-04-01 08:30:03 +00:00
|
|
|
() => {
|
2022-06-27 07:28:28 +00:00
|
|
|
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
|
2023-01-05 14:40:15 +00:00
|
|
|
gst::assert_initialized();
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
2018-04-01 08:30:03 +00:00
|
|
|
};
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! skip_assert_initialized {
|
2018-04-01 08:30:03 +00:00
|
|
|
() => {};
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mod auto;
|
2020-11-22 10:40:16 +00:00
|
|
|
pub use crate::auto::*;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2022-09-12 16:32:16 +00:00
|
|
|
#[cfg(feature = "serde")]
|
2022-05-05 10:40:07 +00:00
|
|
|
mod flag_serde;
|
|
|
|
|
2023-12-08 15:48:03 +00:00
|
|
|
pub mod rtsp_auth_credential;
|
|
|
|
pub mod rtsp_message;
|
|
|
|
|
2018-02-09 02:30:08 +00:00
|
|
|
// Re-export all the traits in a prelude module, so that applications
|
2021-04-27 07:30:13 +00:00
|
|
|
// can always "use gst_rtsp::prelude::*" without getting conflicts
|
2018-02-09 02:30:08 +00:00
|
|
|
pub mod prelude {
|
2020-12-20 17:39:15 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub use gst_sdp::prelude::*;
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|