Trait gstreamer::prelude::PluginFeatureExt

source ·
pub trait PluginFeatureExt: IsA<PluginFeature> + Sealed + 'static {
    // Provided methods
    fn check_version(
        &self,
        min_major: u32,
        min_minor: u32,
        min_micro: u32,
    ) -> bool { ... }
    fn plugin(&self) -> Option<Plugin> { ... }
    fn plugin_name(&self) -> Option<GString> { ... }
}
Expand description

Provided Methods§

source

fn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool

Checks whether the given plugin feature is at least the required version.

Note: Since version 1.24 this function no longer returns true if the version is a git development version (e.g. 1.23.0.1) and the check is for the “next” micro version, that is it will no longer return true for e.g. 1.23.0.1 if the check is for 1.23.1. It is still possible to parse the nano version from the string and do this check that way if needed.

§min_major

minimum required major version

§min_minor

minimum required minor version

§min_micro

minimum required micro version

§Returns

true if the plugin feature has at least the required version, otherwise false.

source

fn plugin(&self) -> Option<Plugin>

Get the plugin that provides this feature.

§Returns

the plugin that provides this feature, or None. Unref with gst_object_unref() when no longer needed.

source

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

Get the name of the plugin that provides this feature.

§Returns

the name of the plugin that provides this feature, or None if the feature is not associated with a plugin.

Object Safety§

This trait is not object safe.

Implementors§