gstreamer_play/
lib.rs

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
8pub use gst;
9pub use gst_video;
10pub use gstreamer_play_sys as ffi;
11
12macro_rules! skip_assert_initialized {
13    () => {};
14}
15
16macro_rules! assert_initialized_main_thread {
17    () => {
18        if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
19            gst::assert_initialized();
20        }
21    };
22}
23
24#[allow(clippy::needless_borrow)]
25#[allow(unused)]
26#[allow(unused_imports)]
27mod auto;
28pub(crate) use crate::auto::PlayMessage as PlayMessageType;
29pub use crate::auto::*;
30
31pub mod subclass;
32
33mod config;
34mod play;
35pub use crate::config::*;
36
37mod play_video_info;
38
39mod play_signal_adapter;
40mod play_video_overlay_video_renderer;
41mod play_visualization;
42
43pub mod play_message;
44pub use crate::play_message::PlayMessage;
45
46// Re-export all the traits in a prelude module, so that applications
47// can always "use gst_player::prelude::*" without getting conflicts
48pub mod prelude {
49    #[doc(hidden)]
50    pub use gst_video::prelude::*;
51
52    pub use crate::auto::traits::*;
53}