[][src]Trait gstreamer::prelude::PluginFeatureExt

pub trait PluginFeatureExt: 'static {
    fn check_version(
        min_major: u32,
        min_minor: u32,
        min_micro: u32
    ) -> bool;
fn get_plugin(&self) -> Option<Plugin>;
fn get_plugin_name(&self) -> Option<GString>;
fn load(&self) -> Result<PluginFeature, BoolError>; }

Trait containing all PluginFeature methods.


DeviceProviderFactory, ElementFactory, PluginFeature, TypeFindFactory

Required methods

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


minimum required major version


minimum required minor version


minimum required micro version


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

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

Get the plugin that provides this feature.


the plugin that provides this feature, or None. Unref with GstObjectExt::unref when no longer needed.

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

Get the name of the plugin that provides this feature.


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

fn load(&self) -> Result<PluginFeature, BoolError>

Loads the plugin containing self if it's not already loaded. self is unaffected; use the return value instead.

Normally this function is used like this:

GstPluginFeature *loaded_feature;

loaded_feature = gst_plugin_feature_load (feature);
// presumably, we're no longer interested in the potentially-unloaded feature
gst_object_unref (feature);
feature = loaded_feature;


a reference to the loaded feature, or None on error

Loading content...


impl<O: IsA<PluginFeature>> PluginFeatureExt for O[src]

Loading content...