gstreamer_pbutils::prelude

Trait DiscovererStreamInfoExt

Source
pub trait DiscovererStreamInfoExt: IsA<DiscovererStreamInfo> + 'static {
    // Provided methods
    fn caps(&self) -> Option<Caps> { ... }
    fn misc(&self) -> Option<Structure> { ... }
    fn next(&self) -> Option<DiscovererStreamInfo> { ... }
    fn previous(&self) -> Option<DiscovererStreamInfo> { ... }
    fn stream_id(&self) -> Option<GString> { ... }
    fn stream_number(&self) -> i32 { ... }
    fn stream_type_nick(&self) -> GString { ... }
    fn tags(&self) -> Option<TagList> { ... }
    fn toc(&self) -> Option<Toc> { ... }
}
Expand description

Provided Methods§

Source

fn caps(&self) -> Option<Caps>

§Returns

the gst::Caps of the stream. Unref with gst_caps_unref after usage.

Source

fn misc(&self) -> Option<Structure>

§Deprecated

This functions is deprecated since version 1.4, use gst_discoverer_info_get_missing_elements_installer_details

§Returns

additional information regarding the stream (for example codec version, profile, etc..). If you wish to use the gst::Structure after the life-time of self you will need to copy it.

Source

fn next(&self) -> Option<DiscovererStreamInfo>

§Returns

the next DiscovererStreamInfo in a chain. None for final streams. Unref with gst_discoverer_stream_info_unref after usage.

Source

fn previous(&self) -> Option<DiscovererStreamInfo>

§Returns

the previous DiscovererStreamInfo in a chain. None for starting points. Unref with gst_discoverer_stream_info_unref after usage.

Source

fn stream_id(&self) -> Option<GString>

§Returns

the stream ID of this stream. If you wish to use the stream ID after the life-time of self you will need to copy it.

Source

fn stream_number(&self) -> i32

§Returns

the stream number, -1 if no index could be determined. This property acts as a unique identifier as a ‘int’ for the stream.

Source

fn stream_type_nick(&self) -> GString

§Returns

a human readable name for the stream type of the given self (ex : “audio”, “container”,…).

Source

fn tags(&self) -> Option<TagList>

§Returns

the tags contained in this stream. If you wish to use the tags after the life-time of self you will need to copy them.

Source

fn toc(&self) -> Option<Toc>

§Returns

the TOC contained in this stream. If you wish to use the TOC after the life-time of self you will need to copy it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§