Skip to main content

gstreamer_tag/
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 glib;
9pub use gst;
10pub use gstreamer_tag_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
24mod auto;
25pub use crate::auto::*;
26
27pub mod license;
28pub mod tag;
29mod tags;
30pub use crate::tags::*;
31pub mod language_codes;
32mod sample_ext;
33mod taglist_ext;
34pub use crate::taglist_ext::ExifEndian;
35
36// Re-export all the traits in a prelude module, so that applications
37// can always "use gst_tag::prelude::*" without getting conflicts
38pub mod prelude {
39    pub use crate::sample_ext::ImageSampleExt;
40    pub use crate::taglist_ext::{TagListExt, TagListRefMutExt};
41    #[doc(hidden)]
42    pub use gst::prelude::*;
43}