mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-03 05:49:37 +00:00
382138b75a
- enable is_equal function again (unsure why it was disabled) - remove restriction-caps property, encoding-profile objects are immutable - remove cast need by using IsA<EncodingProfile> in parameters and returning the correct type of encodingprofile subclass from the build() functions. It used a internal hack for storing those IsA objects in order to keep the API clean and ready to be used, this should be sorted out as soon as we figure out how to store them in the buidlers. - encodebin example: remove Result error propagation when it is caused by programming mistakes. A panic will happen in those cases. - run rustfmt
42 lines
1.2 KiB
Rust
42 lines
1.2 KiB
Rust
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
// DO NOT EDIT
|
|
|
|
use DiscovererStreamInfo;
|
|
use ffi;
|
|
use glib::translate::*;
|
|
use glib_ffi;
|
|
use gobject_ffi;
|
|
use std::mem;
|
|
use std::ptr;
|
|
|
|
glib_wrapper! {
|
|
/// `DiscovererStreamInfo` specific to container streams.
|
|
///
|
|
/// # Implements
|
|
///
|
|
/// [`DiscovererStreamInfoExt`](trait.DiscovererStreamInfoExt.html), [`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html)
|
|
pub struct DiscovererContainerInfo(Object<ffi::GstDiscovererContainerInfo>): DiscovererStreamInfo;
|
|
|
|
match fn {
|
|
get_type => || ffi::gst_discoverer_container_info_get_type(),
|
|
}
|
|
}
|
|
|
|
impl DiscovererContainerInfo {
|
|
///
|
|
/// # Returns
|
|
///
|
|
/// the list of
|
|
/// `DiscovererStreamInfo` this container stream offers.
|
|
/// Free with `DiscovererStreamInfo::list_free` after usage.
|
|
pub fn get_streams(&self) -> Vec<DiscovererStreamInfo> {
|
|
unsafe {
|
|
FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_container_info_get_streams(self.to_glib_none().0))
|
|
}
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for DiscovererContainerInfo {}
|
|
unsafe impl Sync for DiscovererContainerInfo {}
|