From 082d109f2791f559347dfa6f0088cd54934eaec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 30 Oct 2021 16:17:34 +0300 Subject: [PATCH] pbutils: Implement DiscovererContainerInfo::tags() manually Unclear why it's not generated. --- .../src/discoverer_container_info.rs | 20 +++++++++++++++++++ gstreamer-pbutils/src/lib.rs | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 gstreamer-pbutils/src/discoverer_container_info.rs 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;