diff --git a/gstreamer-pbutils/src/discoverer_container_info.rs b/gstreamer-pbutils/src/discoverer_container_info.rs new file mode 100644 index 000000000..a3e8f303d --- /dev/null +++ b/gstreamer-pbutils/src/discoverer_container_info.rs @@ -0,0 +1,20 @@ +// Take a look at the license at the top of the repository in the LICENSE file. + +use crate::DiscovererContainerInfo; + +#[cfg(any(feature = "v1_20", feature = "dox"))] +use glib::translate::*; + +impl DiscovererContainerInfo { + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "get_tags")] + #[doc(alias = "gst_discoverer_container_info_get_tags")] + pub fn tags(&self) -> Option { + unsafe { + from_glib_none(ffi::gst_discoverer_container_info_get_tags( + self.to_glib_none().0, + )) + } + } +} diff --git a/gstreamer-pbutils/src/lib.rs b/gstreamer-pbutils/src/lib.rs index 97d703ea8..bb5964f2d 100644 --- a/gstreamer-pbutils/src/lib.rs +++ b/gstreamer-pbutils/src/lib.rs @@ -39,10 +39,9 @@ pub use crate::auto::*; mod discoverer; pub use crate::discoverer::*; +mod discoverer_container_info; pub mod discoverer_stream_info; - mod discoverer_video_info; -pub use crate::discoverer_video_info::*; pub mod encoding_profile;