Gst.PluginFeature¶
- Subclasses:
- Gst.DeviceProviderFactory,- Gst.DynamicTypeFactory,- Gst.ElementFactory,- Gst.TracerFactory,- Gst.TypeFindFactory
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gst.PluginFeature(**kwargs)¶
- Bases:
- Abstract:
- Yes 
- Structure:
 - This is a base class for anything that can be added to a - Gst.Plugin.- classmethod list_copy(list)[source]¶
- Parameters:
- list ([ - Gst.PluginFeature]) – list of- Gst.PluginFeature
- Returns:
- a copy of list, with each feature’s reference count incremented. 
- Return type:
 - Copies the list of features. Caller should call gst_plugin_feature_list_free when done with the list. 
 - classmethod list_debug(list)[source]¶
- Parameters:
- list ([ - Gst.PluginFeature]) – a- GLib.Listof plugin features
 - Debug the plugin feature names in list. 
 - classmethod list_free(list)[source]¶
- Parameters:
- list ([ - Gst.PluginFeature]) – list of- Gst.PluginFeature
 - Unrefs each member of list, then frees the list. 
 - classmethod rank_compare_func(p1, p2)[source]¶
- Parameters:
- p1 ( - objector- None) – a- Gst.PluginFeature
- p2 ( - objector- None) – a- Gst.PluginFeature
 
- Returns:
- negative value if the rank of p1 > the rank of p2 or the ranks are equal but the name of p1 comes before the name of p2; zero if the rank and names are equal; positive value if the rank of p1 < the rank of p2 or the ranks are equal but the name of p2 comes before the name of p1 
- Return type:
 - Compares the two given - Gst.PluginFeatureinstances. This function can be used as a- GLib.CompareFuncwhen sorting by rank and then by name.
 - check_version(min_major, min_minor, min_micro)[source]¶
- Parameters:
- Returns:
- Trueif the plugin feature has at least the required version, otherwise- False.
- Return type:
 - Checks whether the given plugin feature is at least the required version. - Note: Since version 1.24 this function no longer returns - Trueif 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- Truefor 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.
 - get_plugin()[source]¶
- Returns:
- the plugin that provides this feature, or - None. Unref with- Gst.Object.unref() when no longer needed.
- Return type:
- Gst.Pluginor- None
 - Get the plugin that provides this feature. 
 - get_plugin_name()[source]¶
- Returns:
- the name of the plugin that provides this feature, or - Noneif the feature is not associated with a plugin.
- Return type:
 - Get the name of the plugin that provides this feature. - New in version 1.2. 
 - get_rank()[source]¶
- Returns:
- The rank of the feature 
- Return type:
 - Gets the rank of a plugin feature. 
 - load()[source]¶
- Returns:
- a reference to the loaded feature, or - Noneon error
- Return type:
 - 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;