pbutils: Implement DiscovererContainerInfo::tags() manually

Unclear why it's not generated.
This commit is contained in:
Sebastian Dröge 2021-10-30 16:17:34 +03:00
parent d785bf8c3a
commit 082d109f27
2 changed files with 21 additions and 2 deletions

View file

@ -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<gst::TagList> {
unsafe {
from_glib_none(ffi::gst_discoverer_container_info_get_tags(
self.to_glib_none().0,
))
}
}
}

View file

@ -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;