2020-11-18 12:48:41 +00:00
|
|
|
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
|
|
|
|
2020-06-09 01:06:49 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate glib;
|
|
|
|
extern crate glib_sys;
|
|
|
|
extern crate gobject_sys;
|
|
|
|
extern crate gstreamer as gst;
|
|
|
|
extern crate gstreamer_sys as gst_sys;
|
|
|
|
|
|
|
|
extern crate gstreamer_controller_sys as gst_controller_sys;
|
|
|
|
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
|
|
|
() => {
|
|
|
|
if unsafe { ::gst_sys::gst_is_initialized() } != ::glib_sys::GTRUE {
|
|
|
|
panic!("GStreamer has not been initialized. Call `gst::init` first.");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! skip_assert_initialized {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[allow(clippy::unreadable_literal)]
|
|
|
|
#[allow(clippy::too_many_arguments)]
|
|
|
|
#[allow(clippy::match_same_arms)]
|
|
|
|
mod auto;
|
|
|
|
mod control_point;
|
|
|
|
pub use auto::*;
|
|
|
|
use control_point::*;
|
|
|
|
|
|
|
|
pub mod prelude {
|
|
|
|
pub use auto::traits::*;
|
|
|
|
}
|